This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

members

        # Struct.members

(from ruby core)
---
    StructClass::members -> array_of_symbols

---

Returns the member names of the Struct descendant as an array:

    Customer = Struct.new(:name, :address, :zip)
    Customer.members # => [:name, :address, :zip]


(from ruby core)
---
    members -> array_of_symbols

---

Returns the member names from `self` as an array:

    Customer = Struct.new(:name, :address, :zip)
    Customer.new.members # => [:name, :address, :zip]

Related: #to_a.



      

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.