D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Hash
/
Filename :
store-i.ri
back
Copy
U:RDoc::AnyMethod[iI" store:ETI"Hash#store;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"HAssociates the given +value+ with the given +key+; returns +value+.;To:RDoc::Markup::BlankLine o; ; [I"KIf the given +key+ exists, replaces its value with the given +value+; ;TI""the ordering is not affected ;TI"4(see {Entry Order}[rdoc-ref:Hash@Entry+Order]):;To:RDoc::Markup::Verbatim; [ I"h = {foo: 0, bar: 1} ;TI"h[:foo] = 2 # => 2 ;TI"h.store(:bar, 3) # => 3 ;TI"h # => {:foo=>2, :bar=>3} ;T:@format0o; ; [I":If +key+ does not exist, adds the +key+ and +value+; ;TI"(the new entry is last in the order ;TI"4(see {Entry Order}[rdoc-ref:Hash@Entry+Order]):;To;; [ I"h = {foo: 0, bar: 1} ;TI"h[:baz] = 2 # => 2 ;TI"h.store(:bat, 3) # => 3 ;TI"0h # => {:foo=>0, :bar=>1, :baz=>2, :bat=>3};T; 0: @fileI"hash.c;T:0@omit_headings_from_table_of_contents_below000[ I" (p1, p2);T@%FI" Hash;TcRDoc::NormalClass0[@(FI"[]=;T