This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.
# Struct.[] (from ruby core) --- struct[name] -> object struct[n] -> object --- Returns a value from `self`. With symbol or string argument `name` given, returns the value for the named member: Customer = Struct.new(:name, :address, :zip) joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) joe[:zip] # => 12345 Raises NameError if `name` is not the name of a member. With integer argument `n` given, returns `self.values[n]` if `n` is in range; see [Array Indexes](Array.html#class-Array-label-Array+Indexes): joe[2] # => 12345 joe[-2] # => "123 Maple, Anytown NC" Raises IndexError if `n` is out of range.
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.