Class: Vertigo::Alternative
- 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 = []) ⇒ Alternative
constructor
A new instance of Alternative.
Methods inherited from AstNode
Constructor Details
#initialize(elements = []) ⇒ Alternative
Returns a new instance of Alternative.
267 268 269 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 267 def initialize elements=[] @elements=elements end |
Instance Attribute Details
#elements ⇒ Object
Returns the value of attribute elements.
266 267 268 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 266 def elements @elements end |
Instance Method Details
#<<(e) ⇒ Object
82 83 84 |
# File 'lib/vertigo/ast.rb', line 82 def << e @elements << e end |