U:RDoc::AnyMethod[iI" merge:ETI"Hash#merge;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [ I"IReturns a new hash containing the contents of other_hash and ;TI"Ithe contents of hsh. If no block is specified, the value for ;TI"Nentries with duplicate keys will be that of other_hash. Otherwise ;TI"Ithe value for each duplicate key is determined by calling the block ;TI"Nwith the key, its value in hsh and its value in other_hash.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [ I"%h1 = { "a" => 100, "b" => 200 } ;TI"%h2 = { "b" => 254, "c" => 300 } ;TI"7h1.merge(h2) #=> {"a"=>100, "b"=>254, "c"=>300} ;TI"9h1.merge(h2){|key, oldval, newval| newval - oldval} ;TI"7 #=> {"a"=>100, "b"=>54, "c"=>300} ;TI",h1 #=> {"a"=>100, "b"=>200};T: @format0: @fileI" hash.c;T:0@omit_headings_from_table_of_contents_below0I"~hsh.merge(other_hash) -> new_hash hsh.merge(other_hash){|key, oldval, newval| block} -> new_hash ;T0[I" (p1);T@FI" Hash;TcRDoc::NormalClass00