Exception: MathEngine::UnknownFunctionError

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

Instance Method Summary collapse

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_sObject



27
28
29
# File 'lib/errors.rb', line 27

def to_s
  "Function '#{@function_name}' was referenced but does not exist"
end