Class: EleetScript::ReturnNode
- Inherits:
-
Object
- Object
- EleetScript::ReturnNode
- Defined in:
- lib/lang/nodes.rb,
lib/lang/interpreter.rb
Instance Method Summary collapse
Instance Method Details
#eval(context) ⇒ Object
415 416 417 418 419 420 421 |
# File 'lib/lang/interpreter.rb', line 415 def eval(context) if expression expression.eval(context) else context.es_nil end end |