Exception: MonkeyBars::PatchableClassMethodIsNotPrivateError
- Inherits:
-
StandardError
- Object
- StandardError
- MonkeyBars::PatchableClassMethodIsNotPrivateError
- Defined in:
- lib/monkey_bars/errors.rb
Instance Method Summary collapse
-
#initialize(patcher_name, monkey: nil, method: nil) ⇒ PatchableClassMethodIsNotPrivateError
constructor
A new instance of PatchableClassMethodIsNotPrivateError.
Constructor Details
#initialize(patcher_name, monkey: nil, method: nil) ⇒ PatchableClassMethodIsNotPrivateError
Returns a new instance of PatchableClassMethodIsNotPrivateError.
65 66 67 |
# File 'lib/monkey_bars/errors.rb', line 65 def initialize(patcher_name, monkey: nil, method: nil) super("[#{patcher_name}] The class method `.#{method}` on `#{monkey}` is not private, but is on the patch. Remove it from `private` in your patch.") end |