Class: Vertigo::When
- Defined in:
- lib/vertigo/ast_vertigo_rkgen.rb
Instance Attribute Summary collapse
-
#cond ⇒ Object
Returns the value of attribute cond.
-
#expr ⇒ Object
Returns the value of attribute expr.
Attributes inherited from AstNode
Instance Method Summary collapse
-
#initialize(expr = nil, cond = nil) ⇒ When
constructor
A new instance of When.
Methods inherited from AstNode
Constructor Details
#initialize(expr = nil, cond = nil) ⇒ When
Returns a new instance of When.
477 478 479 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 477 def initialize expr=nil,cond=nil @expr,@cond=expr,cond end |
Instance Attribute Details
#cond ⇒ Object
Returns the value of attribute cond.
476 477 478 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 476 def cond @cond end |
#expr ⇒ Object
Returns the value of attribute expr.
476 477 478 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 476 def expr @expr end |