Exception: MonkeyBars::PatchableInstanceMethodIsNotProtectedError

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) ⇒ PatchableInstanceMethodIsNotProtectedError

Returns a new instance of PatchableInstanceMethodIsNotProtectedError.



101
102
103
# File 'lib/monkey_bars/errors.rb', line 101

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