Exception: MethodNotImplemented
- Defined in:
- lib/extensions/method_not_implemented.rb
Overview
This exception is thrown if there is a method that has not been implemented that needs to be.
Instance Method Summary collapse
-
#initialize(meth, msg = nil) ⇒ MethodNotImplemented
constructor
A new instance of MethodNotImplemented.
Constructor Details
#initialize(meth, msg = nil) ⇒ MethodNotImplemented
Returns a new instance of MethodNotImplemented.
6 7 8 9 10 |
# File 'lib/extensions/method_not_implemented.rb', line 6 def initialize(meth, msg = nil) mess = "#{meth} has not been implemented!\nPlease implement this method!\nIf you do not understand what this method is supposed to do, please consult the RDoc for more information." mess += "\n#{msg}" unless msg.nil? super(mess) end |