class Wallaby::Node

To present classes in tree structure.

Attributes

klass[R]

@!attribute [r] klass Represent the current class

parent[RW]

@!attribute parent Represent the parent class of current class

Public Class Methods

new(klass) click to toggle source

@param klass [Class]

# File lib/tree/wallaby/node.rb, line 16
def initialize(klass)
  @klass = klass
end

Public Instance Methods

children() click to toggle source

@return [Array<Class>] a list of children classes

# File lib/tree/wallaby/node.rb, line 21
def children
  @children ||= []
end