Exception: MathEngine::UnableToModifyConstantError

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

Instance Method Summary collapse

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_sObject



37
38
39
# File 'lib/errors.rb', line 37

def to_s
  "Unable to modify value of constant '#{@constant_name}'"
end