Exception: MathEngine::UnknownEvaluatorError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(evaluator_name, expected_const) ⇒ UnknownEvaluatorError

Returns a new instance of UnknownEvaluatorError.



43
44
45
46
# File 'lib/errors.rb', line 43

def initialize(evaluator_name, expected_const)
  @evaluator_name = evaluator_name
  @expected_const = expected_const
end

Instance Method Details

#==(other) ⇒ Object



52
53
54
# File 'lib/errors.rb', line 52

def ==(other)
  self.to_s == other.to_s
end

#to_sObject



48
49
50
# File 'lib/errors.rb', line 48

def to_s
  "Unable to find an evaluator called #{@evaluator_name}(#{@expected_const})"
end