Class: EleetScript::GetLocalNode
- Inherits:
-
GetVarNode
- Object
- GetVarNode
- EleetScript::GetLocalNode
- Defined in:
- lib/lang/nodes.rb,
lib/lang/interpreter.rb
Instance Method Summary collapse
Methods inherited from GetVarNode
Instance Method Details
#eval(context) ⇒ Object
171 172 173 174 |
# File 'lib/lang/interpreter.rb', line 171 def eval(context) val = context.local_var(name) val != context.es_nil ? val : context.current_self.call(name, []) end |