Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
Hash
/
//opt/alt/ruby27/share/ri/system/Hash/merge-i.ri
U:RDoc::AnyMethod[iI" merge:ETI"Hash#merge;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"GReturns a new hash that combines the contents of the receiver and ;TI"&the contents of the given hashes.;To:RDoc::Markup::BlankLine o; ; [ I"GIf no block is given, entries with duplicate keys are overwritten ;TI":with the values from each +other_hash+ successively, ;TI"Aotherwise the value for each duplicate key is determined by ;TI"Ccalling the block with the key, its value in the receiver and ;TI"$its value in each +other_hash+.;T@o; ; [I"FWhen called without any argument, returns a copy of the receiver.;T@o:RDoc::Markup::Verbatim; [I"%h1 = { "a" => 100, "b" => 200 } ;TI"%h2 = { "b" => 246, "c" => 300 } ;TI"%h3 = { "b" => 357, "d" => 400 } ;TI"0h1.merge #=> {"a"=>100, "b"=>200} ;TI":h1.merge(h2) #=> {"a"=>100, "b"=>246, "c"=>300} ;TI"Dh1.merge(h2, h3) #=> {"a"=>100, "b"=>357, "c"=>300, "d"=>400} ;TI":h1.merge(h2) {|key, oldval, newval| newval - oldval} ;TI": #=> {"a"=>100, "b"=>46, "c"=>300} ;TI">h1.merge(h2, h3) {|key, oldval, newval| newval - oldval} ;TI"D #=> {"a"=>100, "b"=>311, "c"=>300, "d"=>400} ;TI"/h1 #=> {"a"=>100, "b"=>200};T:@format0: @fileI"hash.c;T:0@omit_headings_from_table_of_contents_below0I"�hsh.merge(other_hash1, other_hash2, ...) -> new_hash hsh.merge(other_hash1, other_hash2, ...) {|key, oldval, newval| block} -> new_hash ;T0[ I"(*args);T@'FI" Hash;TcRDoc::NormalClass00