Class: Rubycc::Front::AST::Return

Inherits:
Data
  • Object
show all
Defined in:
lib/rubycc/front/ast.rb

Overview

return <expr>;, or return; with expr nil (a void return).

Instance Attribute Summary collapse

Instance Attribute Details

#exprObject (readonly)

Returns the value of attribute expr

Returns:

  • (Object)

    the current value of expr



70
71
72
# File 'lib/rubycc/front/ast.rb', line 70

def expr
  @expr
end

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



70
71
72
# File 'lib/rubycc/front/ast.rb', line 70

def token
  @token
end