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

invert

        # Hash.invert

(from ruby core)
---
    hash.invert -> new_hash

---

Returns a new Hash object with the each key-value pair inverted:
    h = {foo: 0, bar: 1, baz: 2}
    h1 = h.invert
    h1 # => {0=>:foo, 1=>:bar, 2=>:baz}

Overwrites any repeated new keys: (see [Entry
Order](#class-Hash-label-Entry+Order)):
    h = {foo: 0, bar: 0, baz: 0}
    h.invert # => {0=>:baz}



      

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.