Exception: Ddenv::SubclassResponsibilityError
- Inherits:
-
StandardError
- Object
- StandardError
- Ddenv::SubclassResponsibilityError
- Defined in:
- lib/ddenv/subclass_responsibility_error.rb
Instance Method Summary collapse
-
#initialize(klass, method_name) ⇒ SubclassResponsibilityError
constructor
A new instance of SubclassResponsibilityError.
Constructor Details
#initialize(klass, method_name) ⇒ SubclassResponsibilityError
Returns a new instance of SubclassResponsibilityError.
5 6 7 |
# File 'lib/ddenv/subclass_responsibility_error.rb', line 5 def initialize(klass, method_name) super("Subclasses of #{klass} must implement the ##{method_name} method.") end |