Class: EleetScript::SetClassVarNode
- Inherits:
-
SetVarNode
- Object
- SetVarNode
- EleetScript::SetClassVarNode
- Defined in:
- lib/lang/nodes.rb,
lib/lang/interpreter.rb
Instance Method Summary collapse
Methods inherited from SetVarNode
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 |