Current Path : /usr/local/share/ri/1.8/system/Hash/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/local/share/ri/1.8/system/Hash/shift-i.yaml |
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Removes a key-value pair from <em>hsh</em> and returns it as the two-item array <tt>[</tt> <em>key, value</em> <tt>]</tt>, or the hash's default value if the hash is empty. - !ruby/struct:SM::Flow::VERB body: " h = { 1 => "a", 2 => "b", 3 => "c" }\n h.shift #=> [1, "a"]\n h #=> {2=>"b", 3=>"c"}\n" full_name: Hash#shift is_singleton: false name: shift params: | hsh.shift -> anArray or obj visibility: public