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

to_h

        # Hash.to_h

(from ruby core)
---
    hash.to_h -> self or new_hash
    hash.to_h {|key, value| ... } -> new_hash

---

For an instance of Hash, returns `self`.

For a subclass of Hash, returns a new Hash containing the content of
`self`.

When a block is given, returns a new Hash object whose content is based
on the block; the block should return a 2-element Array object
specifying the key-value pair to be included in the returned Array:
    h = {foo: 0, bar: 1, baz: 2}
    h1 = h.to_h {|key, value| [value, key] }
    h1 # => {0=>:foo, 1=>:bar, 2=>: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.