class EleetScript::SetConstantNode
Public Instance Methods
eval(context)
click to toggle source
# File lib/lang/interpreter.rb, line 194 def eval(context) if !context.constants.has_key?(name) context[name] = value.eval(context) else Helpers.throw_eleet_error(context, "Cannot reassign constant \"#{name}\" after it's already been defined!") end end