method

update

v1_8_6_287 - Show latest stable - Class: Hash
update(p1)
public

Adds the contents of other_hash to hsh, overwriting entries with duplicate keys with those from other_hash.

   h1 = { "a" => 100, "b" => 200 }
   h2 = { "b" => 254, "c" => 300 }
   h1.merge!(h2)   #=> {"a"=>100, "b"=>254, "c"=>300}