Class: Vertigo::RecordDecl
- 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 = []) ⇒ RecordDecl
constructor
A new instance of RecordDecl.
Methods inherited from AstNode
Constructor Details
#initialize(elements = []) ⇒ RecordDecl
Returns a new instance of RecordDecl.
365 366 367 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 365 def initialize elements=[] @elements=elements end |
Instance Attribute Details
#elements ⇒ Object
Returns the value of attribute elements.
364 365 366 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 364 def elements @elements end |
Instance Method Details
#<<(e) ⇒ Object
21 22 23 |
# File 'lib/vertigo/ast.rb', line 21 def <<(e) @elements << e end |