Exception: MathEngine::UnknownVariableError
- Inherits:
-
StandardError
- Object
- StandardError
- MathEngine::UnknownVariableError
- Defined in:
- lib/errors.rb
Instance Method Summary collapse
-
#initialize(variable_name) ⇒ UnknownVariableError
constructor
A new instance of UnknownVariableError.
- #to_s ⇒ Object
Constructor Details
#initialize(variable_name) ⇒ UnknownVariableError
Returns a new instance of UnknownVariableError.
13 14 15 |
# File 'lib/errors.rb', line 13 def initialize(variable_name) @variable_name = variable_name end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/errors.rb', line 17 def to_s "Variable '#{@variable_name}' was referenced but does not exist" end |