Class: EleetScript::SetInstanceVarNode

Inherits:
SetVarNode
  • Object
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



204
205
206
# File 'lib/lang/interpreter.rb', line 204

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