Class: Vertigo::GenericMap
- 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 = []) ⇒ GenericMap
constructor
A new instance of GenericMap.
Methods inherited from AstNode
Constructor Details
#initialize(elements = []) ⇒ GenericMap
Returns a new instance of GenericMap.
176 177 178 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 176 def initialize elements=[] @elements=elements end |
Instance Attribute Details
#elements ⇒ Object
Returns the value of attribute elements.
175 176 177 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 175 def elements @elements end |
Instance Method Details
#<<(e) ⇒ Object
76 77 78 |
# File 'lib/vertigo/ast.rb', line 76 def << e @elements << e end |