This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.
# Hash.each_key (from ruby core) --- hash.each_key {|key| ... } -> self hash.each_key -> new_enumerator --- Calls the given block with each key; returns `self`: h = {foo: 0, bar: 1, baz: 2} h.each_key {|key| puts key } # => {:foo=>0, :bar=>1, :baz=>2} Output: foo bar baz Returns a new Enumerator if no block given: h = {foo: 0, bar: 1, baz: 2} e = h.each_key # => #<Enumerator: {:foo=>0, :bar=>1, :baz=>2}:each_key> h1 = e.each {|key| puts key } h1 # => {:foo=>0, :bar=>1, :baz=>2} Output: foo bar 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.