Class: Vertigo::Return

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

Returns a new instance of Return.



302
303
304
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 302

def initialize expr=nil
  @expr=expr
end

Instance Attribute Details

#exprObject

Returns the value of attribute expr.



301
302
303
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 301

def expr
  @expr
end