Exception: Abyss::Errors::AbstractMethod
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Abyss::Errors::AbstractMethod
- Defined in:
- lib/abyss/errors.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ AbstractMethod
constructor
A new instance of AbstractMethod.
- #message ⇒ Object
Constructor Details
#initialize(name) ⇒ AbstractMethod
Returns a new instance of AbstractMethod.
20 21 22 |
# File 'lib/abyss/errors.rb', line 20 def initialize(name) self.name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
18 19 20 |
# File 'lib/abyss/errors.rb', line 18 def name @name end |
Instance Method Details
#message ⇒ Object
24 25 26 |
# File 'lib/abyss/errors.rb', line 24 def "Abstract method: must override #{name} in a base class." end |