Exception: MonkeyBars::PatchableClassMethodIsProtectedError
- Inherits:
-
StandardError
- Object
- StandardError
- MonkeyBars::PatchableClassMethodIsProtectedError
- Defined in:
- lib/monkey_bars/errors.rb
Instance Method Summary collapse
-
#initialize(patcher_name, monkey: nil, method: nil) ⇒ PatchableClassMethodIsProtectedError
constructor
A new instance of PatchableClassMethodIsProtectedError.
Constructor Details
#initialize(patcher_name, monkey: nil, method: nil) ⇒ PatchableClassMethodIsProtectedError
Returns a new instance of PatchableClassMethodIsProtectedError.
83 84 85 |
# File 'lib/monkey_bars/errors.rb', line 83 def initialize(patcher_name, monkey: nil, method: nil) super("[#{patcher_name}] The class method `.#{method}` on `#{monkey}` is protected, but isn't on the patch. Mark it as `protected` in your patch.") end |