Class: FunFX::Meta::MetaClass

Inherits:
Object
  • Object
show all
Defined in:
lib/funfx/meta/parser.rb

Direct Known Subclasses

FlexMetaClass

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMetaClass

Returns a new instance of MetaClass.



53
54
55
# File 'lib/funfx/meta/parser.rb', line 53

def initialize
  @children = []
end

Instance Attribute Details

#childrenObject (readonly)

Returns the value of attribute children.



51
52
53
# File 'lib/funfx/meta/parser.rb', line 51

def children
  @children
end

Instance Method Details

#add_children_recursive(a) ⇒ Object



57
58
59
60
61
62
# File 'lib/funfx/meta/parser.rb', line 57

def add_children_recursive(a)
  @children.each do |c|
    a << c
    c.add_children_recursive(a)
  end
end