Skip to content
This repository has been archived by the owner on Jul 31, 2022. It is now read-only.

Commit

Permalink
symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
xinuc committed Apr 17, 2012
1 parent 2d5564a commit c9f2099
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Session1.md
Expand Up @@ -561,5 +561,12 @@ has_and = /and/i
```

## Symbols

Ruby memiliki object spesial yang bernama *symbol*. Symbol selalu diawali dengan titik dua `:`,
seperti `:indonesia`. Hanya memiliki satu copy untuk setiap symbol, sehingga symbol yang sama
pasti memiliki object yang sama.

Symbol biasanya digunakan sebagai `key` atau indentifier dalam hash atau object ruby.

## Hashes
## Methods

0 comments on commit c9f2099

Please sign in to comment.