Class: Vertigo::Root
- Defined in:
- lib/vertigo/ast.rb,
lib/vertigo/ast_vertigo_rkgen.rb
Instance Attribute Summary collapse
-
#design_units ⇒ Object
Returns the value of attribute design_units.
Attributes inherited from AstNode
Instance Method Summary collapse
- #<<(e) ⇒ Object
- #flatten! ⇒ Object
-
#initialize(design_units = []) ⇒ Root
constructor
A new instance of Root.
Methods inherited from AstNode
Constructor Details
#initialize(design_units = []) ⇒ Root
Returns a new instance of Root.
22 23 24 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 22 def initialize design_units=[] @design_units=design_units end |
Instance Attribute Details
#design_units ⇒ Object
Returns the value of attribute design_units.
21 22 23 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 21 def design_units @design_units end |
Instance Method Details
#<<(e) ⇒ Object
11 12 13 |
# File 'lib/vertigo/ast.rb', line 11 def <<(e) @design_units << e end |
#flatten! ⇒ Object
15 16 17 |
# File 'lib/vertigo/ast.rb', line 15 def flatten! @design_units.flatten! end |