Class: EleetScript::SetGlobalNode

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

Instance Method Summary collapse

Methods inherited from SetVarNode

#to_s

Instance Method Details

#eval(context) ⇒ Object



159
160
161
# File 'lib/lang/interpreter.rb', line 159

def eval(context)
  context[name] = value.eval(context)
end