Class: Vertigo::CaseWhen

Inherits:
AstNode show all
Defined in:
lib/vertigo/ast_vertigo_rkgen.rb

Instance Attribute Summary collapse

Attributes inherited from AstNode

#label, #pos

Instance Method Summary collapse

Methods inherited from AstNode

#accept, #str

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

#bodyObject

Returns the value of attribute body.



259
260
261
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 259

def body
  @body
end

#exprObject

Returns the value of attribute expr.



259
260
261
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 259

def expr
  @expr
end