--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: Returns a new hash containing the contents of other_hash and the contents of hsh, overwriting entries in hsh with duplicate keys with those from other_hash.
- !ruby/struct:SM::Flow::VERB
body: " h1 = { "a" => 100, "b" => 200 }\n h2 = { "b" => 254, "c" => 300 }\n h1.merge(h2) #=> {"a"=>100, "b"=>254, "c"=>300}\n h1 #=> {"a"=>100, "b"=>200}\n"
full_name: Hash#merge
is_singleton: false
name: merge
params: |
hsh.merge(other_hash) -> a_hash
hsh.merge(other_hash){|key, oldval, newval| block} -> a_hash
visibility: public