%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/cpanel/ea-ruby24/root/usr/share/ri/system/Hash/
Upload File :
Create Path :
Current File : //opt/cpanel/ea-ruby24/root/usr/share/ri/system/Hash/merge-i.ri

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 <i>other_hash</i> and ;TI"Ithe contents of <i>hsh</i>. If no block is specified, the value for ;TI"Nentries with duplicate keys will be that of <i>other_hash</i>. Otherwise ;TI"Ithe value for each duplicate key is determined by calling the block ;TI"Nwith the key, its value in <i>hsh</i> and its value in <i>other_hash</i>.;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

Zerion Mini Shell 1.0