Class: Vertigo::Aggregate
- Defined in:
- lib/vertigo/ast.rb,
lib/vertigo/ast_vertigo_rkgen.rb
Instance Attribute Summary collapse
-
#elements ⇒ Object
Returns the value of attribute elements.
Attributes inherited from AstNode
Instance Method Summary collapse
- #<<(e) ⇒ Object
-
#initialize(elements = []) ⇒ Aggregate
constructor
A new instance of Aggregate.
Methods inherited from AstNode
Constructor Details
#initialize(elements = []) ⇒ Aggregate
Returns a new instance of Aggregate.
589 590 591 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 589 def initialize elements=[] @elements=elements end |
Instance Attribute Details
#elements ⇒ Object
Returns the value of attribute elements.
588 589 590 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 588 def elements @elements end |
Instance Method Details
#<<(e) ⇒ Object
64 65 66 |
# File 'lib/vertigo/ast.rb', line 64 def << e @elements << e end |