File: //usr/share/ri/3.0.0/system/Hash/shift-i.ri
U:RDoc::AnyMethod[iI"
shift:ETI"Hash#shift;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I""Removes the first hash entry ;TI"9(see {Entry Order}[#class-Hash-label-Entry+Order]); ;TI"Ereturns a 2-element \Array containing the removed key and value:;To:RDoc::Markup::Verbatim; [I""h = {foo: 0, bar: 1, baz: 2}
;TI"h.shift # => [:foo, 0]
;TI"h # => {:bar=>1, :baz=>2}
;T:@format0o;
; [I"4Returns the default value if the hash is empty ;TI">(see {Default Values}[#class-Hash-label-Default+Values]).;T:
@fileI"hash.c;T:0@omit_headings_from_table_of_contents_below0I"1hash.shift -> [key, value] or default_value
;T0[ I"();T@FI" Hash;TcRDoc::NormalClass00