File: //usr/share/ri/3.0.0/system/Hash/store-i.ri
U:RDoc::AnyMethod[iI"
store:ETI"Hash#store;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I")Hash#store is an alias for Hash#[]=.;To:RDoc::Markup::BlankLine o;
; [I"HAssociates the given +value+ with the given +key+; returns +value+.;T@o;
; [I"KIf the given +key+ exists, replaces its value with the given +value+; ;TI""the ordering is not affected ;TI"8(see {Entry Order}[#class-Hash-label-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"8(see {Entry Order}[#class-Hash-label-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