Content deleted Content added
No edit summary |
→Examples: that's actually type coercion; rm a silly example |
||
Line 64:
<source lang=ruby>
my_symbol = :a
my_symbol = :"
</source>
Strings can be coerced into symbols, vice versa:
Line 82 ⟶ 77:
my_symbol.length #=> 11
my_symbol.class #=> Symbol
</source>
Symbols as keys of an associative array:
|