Exception: MathEngine::UnableToModifyConstantError
- Inherits:
-
StandardError
- Object
- StandardError
- MathEngine::UnableToModifyConstantError
- Defined in:
- lib/errors.rb
Instance Method Summary collapse
-
#initialize(constant_name) ⇒ UnableToModifyConstantError
constructor
A new instance of UnableToModifyConstantError.
- #to_s ⇒ Object
Constructor Details
#initialize(constant_name) ⇒ UnableToModifyConstantError
Returns a new instance of UnableToModifyConstantError.
33 34 35 |
# File 'lib/errors.rb', line 33 def initialize(constant_name) @constant_name = constant_name end |
Instance Method Details
#to_s ⇒ Object
37 38 39 |
# File 'lib/errors.rb', line 37 def to_s "Unable to modify value of constant '#{@constant_name}'" end |