Exception: Freshen::UpdateMethodNotImplementedError
- Inherits:
-
NotImplementedError
- Object
- NotImplementedError
- Freshen::UpdateMethodNotImplementedError
- Defined in:
- lib/freshen/errors.rb
Overview
A NotImplementedError subclass for when the update method of a freshener subclass has not been implemented.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(freshener) ⇒ UpdateMethodNotImplementedError
constructor
A new instance of UpdateMethodNotImplementedError.
- #to_s ⇒ Object
Constructor Details
#initialize(freshener) ⇒ UpdateMethodNotImplementedError
Returns a new instance of UpdateMethodNotImplementedError.
28 29 30 |
# File 'lib/freshen/errors.rb', line 28 def initialize(freshener) @name = freshener.class.name.split('::').last end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
26 27 28 |
# File 'lib/freshen/errors.rb', line 26 def name @name end |
Instance Method Details
#to_s ⇒ Object
32 33 34 |
# File 'lib/freshen/errors.rb', line 32 def to_s "#{@name} does not implement the update method" end |