replace(other_hash)
Instance Public methods
Replaces the contents of this hash with other_hash.
1 2 | h = { "a" => 100 , "b" => 200 } h.replace({ "c" => 300 , "d" => 400 }) # => {"c"=>300, "d"=>400} |
Replaces the contents of this hash with other_hash.
1 2 | h = { "a" => 100 , "b" => 200 } h.replace({ "c" => 300 , "d" => 400 }) # => {"c"=>300, "d"=>400} |
Designed by : w10schools
service@w10schools.com
Please login to continue.