Class: EleetScript::SetClassVarNode

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



216
217
218
# File 'lib/lang/interpreter.rb', line 216

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