Sha256: fc192cae3379563481b524877946dffc501ef816ba6288b742cb7b51fcd11544
Contents?: true
Size: 452 Bytes
Versions: 2
Compression:
Stored size: 452 Bytes
Contents
Hash objects are similar to Arrays in that they are a collection. However, Hashes are more similar to dictionaries in that they have keys, or terms, that relate to their values, or definitions. Any object can be used as a key, including other hashes. Hashes are known as associative arrays and use bracket notation to retrieve elements. Unlike Arrays, Hashes use the keys to retrieve the values. Example: hash = { a: 1, b: 2, c: 3 } hash[:a] #=> 1
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubytutor-0.1.1 | lib/descriptions/Hash.txt |
rubytutor-0.1.0 | lib/descriptions/Hash.txt |