Exception: MathEngine::UnknownEvaluatorError
- Inherits:
-
StandardError
- Object
- StandardError
- MathEngine::UnknownEvaluatorError
- Defined in:
- lib/errors.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(evaluator_name, expected_const) ⇒ UnknownEvaluatorError
constructor
A new instance of UnknownEvaluatorError.
- #to_s ⇒ Object
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_s ⇒ Object
48 49 50 |
# File 'lib/errors.rb', line 48 def to_s "Unable to find an evaluator called #{@evaluator_name}(#{@expected_const})" end |