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