method

initialize_copy

v1_8_7_72 - Show latest stable - Class: Hash
initialize_copy(p1)
public

Replaces the contents of hsh with the contents of other_hash.

   h = { "a" => 100, "b" => 200 }
   h.replace({ "c" => 300, "d" => 400 })   #=> {"c"=>300, "d"=>400}