hsh.replace(other_hash) â hsh
Instance Public methods
Replaces the contents of hsh with the contents of other_hash.
1 2 | h = { "a" => 100 , "b" => 200 } h.replace({ "c" => 300 , "d" => 400 }) #=> {"c"=>300, "d"=>400} |
Please login to continue.