Class: EleetScript::GetConstantNode

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

Instance Method Summary collapse

Methods inherited from GetVarNode

#to_s

Instance Method Details

#eval(context) ⇒ Object



188
189
190
# File 'lib/lang/interpreter.rb', line 188

def eval(context)
  context.constants[name] || context[name]
end