Exception: Com::AbstractMethodError
- Inherits:
-
StandardError
- Object
- StandardError
- Com::AbstractMethodError
- Includes:
- StandardError
- Defined in:
- lib/com/abstract_method_error.rb
Overview
Represents errors related to “abstract” methods.
Despite Ruby does not have conception of abstract methods usually developers do want to force concrete classes to provide implementation for the method called from base class. In that case called method with assumed obligatory implementation in concrete classes can be desided as abstract method.
Class Method Summary collapse
Class Method Details
.method_not_overridden_error(klass, method_name) ⇒ ::Com::AbstractMethodError
59 60 61 |
# File 'lib/com/abstract_method_error.rb', line 59 def self.method_not_overridden_error(klass, method_name) self.new("Method '#{method_name}' has to be overridden in '#{klass}' class.") end |