Module: EleetScript::Helpers

Defined in:
lib/lang/interpreter.rb

Class Method Summary collapse

Class Method Details

.throw_eleet_error(context, error) ⇒ Object



32
33
34
# File 'lib/lang/interpreter.rb', line 32

def self.throw_eleet_error(context, error)
  context.root_ns["Errors"].call("<", [context.root_ns["String"].new_with_value(error, context.namespace_context)])
end