Class: Vertigo::CondExpr
- Defined in:
- lib/vertigo/ast_vertigo_rkgen.rb
Instance Attribute Summary collapse
-
#else_ ⇒ Object
Returns the value of attribute else_.
-
#whens ⇒ Object
Returns the value of attribute whens.
Attributes inherited from AstNode
Instance Method Summary collapse
-
#initialize(whens = [], else_ = nil) ⇒ CondExpr
constructor
A new instance of CondExpr.
Methods inherited from AstNode
Constructor Details
#initialize(whens = [], else_ = nil) ⇒ CondExpr
Returns a new instance of CondExpr.
470 471 472 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 470 def initialize whens=[],else_=nil @whens,@else_=whens,else_ end |
Instance Attribute Details
#else_ ⇒ Object
Returns the value of attribute else_.
469 470 471 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 469 def else_ @else_ end |
#whens ⇒ Object
Returns the value of attribute whens.
469 470 471 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 469 def whens @whens end |