hsh.update(other_hash) â hshhsh.update(other_hash){|key, oldval, newval| block} â hsh
Instance Public methods
Adds the contents of other_hash to hsh. If no block is
specified, entries with duplicate keys are overwritten with the values from
other_hash, otherwise the value of each duplicate key is
determined by calling the block with the key, its value in hsh and
its value in other_hash.
h1 = { "a" => 100, "b" => 200 }
h2 = { "b" => 254,