Exception: RubyPi::NotImplementedError

Inherits:
Error
  • Object
show all
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

Constructor Details

#initialize(method_name = nil) ⇒ NotImplementedError

Returns a new instance of NotImplementedError.

Parameters:

  • method_name (String, Symbol) (defaults to: nil)

    the name of the unimplemented method



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