This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.
# Hash.transform_values (from ruby core) --- hash.transform_values {|value| ... } -> new_hash hash.transform_values -> new_enumerator --- Returns a new Hash object; each entry has: * A key from `self`. * A value provided by the block. Transform values: h = {foo: 0, bar: 1, baz: 2} h1 = h.transform_values {|value| value * 100} h1 # => {:foo=>0, :bar=>100, :baz=>200} Returns a new Enumerator if no block given: h = {foo: 0, bar: 1, baz: 2} e = h.transform_values # => #<Enumerator: {:foo=>0, :bar=>1, :baz=>2}:transform_values> h1 = e.each { |value| value * 100} h1 # => {:foo=>0, :bar=>100, :baz=>200}
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.