Class: Crokus::Case

Inherits:
CtrlStmt show all
Defined in:
lib/crokus/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ast

#accept, #str

Constructor Details

#initialize(e, body) ⇒ Case

Returns a new instance of Case.



312
313
314
# File 'lib/crokus/ast.rb', line 312

def initialize e,body
  @expr,@body=e,body
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



311
312
313
# File 'lib/crokus/ast.rb', line 311

def body
  @body
end

#exprObject

Returns the value of attribute expr.



311
312
313
# File 'lib/crokus/ast.rb', line 311

def expr
  @expr
end