Class: Vertigo::EnumDecl
- 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 = []) ⇒ EnumDecl
constructor
A new instance of EnumDecl.
Methods inherited from AstNode
Constructor Details
#initialize(elements = []) ⇒ EnumDecl
Returns a new instance of EnumDecl.
358 359 360 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 358 def initialize elements=[] @elements=elements end |
Instance Attribute Details
#elements ⇒ Object
Returns the value of attribute elements.
357 358 359 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 357 def elements @elements end |
Instance Method Details
#<<(e) ⇒ Object
52 53 54 |
# File 'lib/vertigo/ast.rb', line 52 def << e @elements << e end |