Class: Crokus::Return

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) ⇒ Return

Returns a new instance of Return.



316
317
318
# File 'lib/crokus/ast.rb', line 316

def initialize e
  @expr=e
end

Instance Attribute Details

#exprObject

Returns the value of attribute expr.



315
316
317
# File 'lib/crokus/ast.rb', line 315

def expr
  @expr
end