Exception: MonkeyBars::PatchableInstanceMethodIsProtectedError

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



107
108
109
# File 'lib/monkey_bars/errors.rb', line 107

def initialize(patcher_name, monkey: nil, method: nil)
  super("[#{patcher_name}] The instance method `##{method}` on `#{monkey}` is protected, but isn't on the patch. Mark it as `protected` in your patch.")
end