This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

shift

        # Hash.shift

(from ruby core)
---
    hash.shift -> [key, value] or default_value

---

Removes the first hash entry (see [Entry
Order](#class-Hash-label-Entry+Order)); returns a 2-element Array
containing the removed key and value:
    h = {foo: 0, bar: 1, baz: 2}
    h.shift # => [:foo, 0]
    h # => {:bar=>1, :baz=>2}

Returns the default value if the hash is empty (see [Default
Values](#class-Hash-label-Default+Values)).



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.