Exception: MonkeyBars::PatchableInstanceMethodIsNotPrivateError
- Inherits:
-
StandardError
- Object
- StandardError
- MonkeyBars::PatchableInstanceMethodIsNotPrivateError
- Defined in:
- lib/monkey_bars/errors.rb
Instance Method Summary collapse
-
#initialize(patcher_name, monkey: nil, method: nil) ⇒ PatchableInstanceMethodIsNotPrivateError
constructor
A new instance of PatchableInstanceMethodIsNotPrivateError.
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 |