This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.
# Struct.each_pair (from ruby core) --- each_pair {|(name, value)| ... } -> self each_pair -> enumerator --- Calls the given block with each member name/value pair; returns `self`: Customer = Struct.new(:name, :address, :zip) # => Customer joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) joe.each_pair {|(name, value)| p "#{name} => #{value}" } Output: "name => Joe Smith" "address => 123 Maple, Anytown NC" "zip => 12345" Returns an Enumerator if no block is given. Related: #each.
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.