hsh[key] â value
Instance Public methods
Element ReferenceâRetrieves the value object corresponding to the
key object. If not found, returns the default value (see
Hash::new
for details).
h = { "a" => 100, "b" => 200 } h["a"] #=> 100 h["c"] #=> nil
Please login to continue.