| Server IP : 162.214.74.102 / Your IP : 216.73.217.21 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Hash/ |
Upload File : |
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::BlankLine o: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