Exception: MonkeyBars::PatchableInstanceMethodIsNotPrivateError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/monkey_bars/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(patcher_name, monkey: nil, method: nil) ⇒ PatchableInstanceMethodIsNotPrivateError

Returns a new instance of PatchableInstanceMethodIsNotPrivateError.



89
90
91
# File 'lib/monkey_bars/errors.rb', line 89

def initialize(patcher_name, monkey: nil, method: nil)
  super("[#{patcher_name}] The instance method `##{method}` on `#{monkey}` is not private, but is on the patch. Remove it from `private` in your patch.")
end