| Server IP : 162.214.74.102 / Your IP : 216.73.217.46 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/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Hash/ |
Upload File : |
U:RDoc::AnyMethod[iI"
store:ETI"Hash#store;TF:publico:RDoc::Markup::Document:@parts[
S:RDoc::Markup::Heading:
leveli: textI"Element Assignment;To:RDoc::Markup::BlankLine o:RDoc::Markup::Paragraph; [I"GAssociates the value given by +value+ with the key given by +key+.;T@
o:RDoc::Markup::Verbatim; [I"$h = { "a" => 100, "b" => 200 }
;TI"h["a"] = 9
;TI"h["c"] = 4
;TI"(h #=> {"a"=>9, "b"=>200, "c"=>4}
;TI"h.store("d", 42) #=> 42
;TI"1h #=> {"a"=>9, "b"=>200, "c"=>4, "d"=>42}
;T:@format0o;; [I"M+key+ should not have its value changed while it is in use as a key (an ;TI"M<tt>unfrozen String</tt> passed as a key will be duplicated and frozen).;T@
o;; [
I"
a = "a"
;TI"b = "b".freeze
;TI" h = { a => 100, b => 200 }
;TI"#h.key(100).equal? a #=> false
;TI"!h.key(200).equal? b #=> true;T;0:
@fileI"hash.c;T:0@omit_headings_from_table_of_contents_below0I"%hsh.store(key, value) -> value;T0[ I"
(p1, p2);T@$FI" Hash;TcRDoc::NormalClass00