Class: FunFX::Meta::MetaClass
- Inherits:
-
Object
- Object
- FunFX::Meta::MetaClass
- Defined in:
- lib/funfx/meta/parser.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#children ⇒ Object
readonly
Returns the value of attribute children.
Instance Method Summary collapse
- #add_children_recursive(a) ⇒ Object
-
#initialize ⇒ MetaClass
constructor
A new instance of MetaClass.
Constructor Details
#initialize ⇒ MetaClass
Returns a new instance of MetaClass.
53 54 55 |
# File 'lib/funfx/meta/parser.rb', line 53 def initialize @children = [] end |
Instance Attribute Details
#children ⇒ Object (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 |