Exception: MathEngine::UnknownFunctionError
- Inherits:
-
StandardError
- Object
- StandardError
- MathEngine::UnknownFunctionError
- Defined in:
- lib/errors.rb
Instance Method Summary collapse
-
#initialize(function_name) ⇒ UnknownFunctionError
constructor
A new instance of UnknownFunctionError.
- #to_s ⇒ Object
Constructor Details
#initialize(function_name) ⇒ UnknownFunctionError
Returns a new instance of UnknownFunctionError.
23 24 25 |
# File 'lib/errors.rb', line 23 def initialize(function_name) @function_name = function_name end |
Instance Method Details
#to_s ⇒ Object
27 28 29 |
# File 'lib/errors.rb', line 27 def to_s "Function '#{@function_name}' was referenced but does not exist" end |