Exception: MonkeyBars::PatchableInstanceMethodIsPrivateError

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

Returns a new instance of PatchableInstanceMethodIsPrivateError.



95
96
97
# File 'lib/monkey_bars/errors.rb', line 95

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