Exception: RubyPi::NotImplementedError
- Defined in:
- lib/ruby_pi/errors.rb
Overview
Raised when a subclass does not implement a required abstract method from a base class.
Instance Method Summary collapse
-
#initialize(method_name = nil) ⇒ NotImplementedError
constructor
A new instance of NotImplementedError.
Constructor Details
#initialize(method_name = nil) ⇒ NotImplementedError
Returns a new instance of NotImplementedError.
93 94 95 |
# File 'lib/ruby_pi/errors.rb', line 93 def initialize(method_name = nil) super(method_name ? "Subclass must implement ##{method_name}" : "Subclass must implement this method") end |