Class: EleetScript::ReturnNode

Inherits:
Object
  • Object
show all
Defined in:
lib/lang/nodes.rb,
lib/lang/interpreter.rb

Instance Method Summary collapse

Instance Method Details

#eval(context) ⇒ Object



398
399
400
401
402
403
404
# File 'lib/lang/interpreter.rb', line 398

def eval(context)
  if expression
    expression.eval(context)
  else
    context.es_nil
  end
end