Hash[ key, value, ... ] â new_hashHash[ [ [key, value], ... ] ] â new_hashHash[ object ] â new_hash
Class Public methods
Creates a new hash populated with the given objects. Equivalent to the
literal { key => value, ... }. In the
first form, keys and values occur in pairs, so there must be an even number
of arguments. The second and third form take a single argument which is
either an array of key-value pairs or an object convertible to a hash.
Hash["