Hash(arg) â hash
Instance Public methods
Converts arg to a Hash
by calling
arg.to_hash
. Returns an empty Hash
when
arg is nil
or []
.
Hash([]) #=> {} Hash(nil) #=> nil Hash(key: :value) #=> {:key => :value} Hash([1, 2, 3]) #=> TypeError
Please login to continue.