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.
8 9 10 |
# File 'lib/abyss/errors.rb', line 8 def initialize(name) self.name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/abyss/errors.rb', line 6 def name @name end |
Instance Method Details
#message ⇒ Object
12 13 14 |
# File 'lib/abyss/errors.rb', line 12 def "Abstract method: must override #{name} in a base class." end |