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