Class: Vertigo::Body
- 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 = []) ⇒ Body
constructor
A new instance of Body.
Methods inherited from AstNode
Constructor Details
#initialize(elements = []) ⇒ Body
Returns a new instance of Body.
127 128 129 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 127 def initialize elements=[] @elements=elements end |
Instance Attribute Details
#elements ⇒ Object
Returns the value of attribute elements.
126 127 128 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 126 def elements @elements end |
Instance Method Details
#<<(e) ⇒ Object
40 41 42 |
# File 'lib/vertigo/ast.rb', line 40 def <<(e) @elements << e end |