Sha256: 709482a8ccc14edf152529dba189bea70708db87557e4036295cbd84629ad06e
Contents?: true
Size: 413 Bytes
Versions: 2
Compression:
Stored size: 413 Bytes
Contents
Symbol objects represent names inside the Ruby interpreter. They are generated using the :name literal syntax, and by the various to_sym methods. While :'string' is also an acceptable form of a symbol, this syntax is rarely used and generally frowned upon. Symbols are also known as immutable, meaning that a symbol cannot be changed when it is created, only replaced. This makes Symbols ideal as keys in Hashes.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubytutor-0.1.1 | lib/descriptions/Symbol.txt |
rubytutor-0.1.0 | lib/descriptions/Symbol.txt |