Exception: MonkeyBars::NoPatchableInstanceMethodFoundError

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

Returns a new instance of NoPatchableInstanceMethodFoundError.



59
60
61
# File 'lib/monkey_bars/errors.rb', line 59

def initialize(patcher_name, monkey: nil, method: nil)
  super("[#{patcher_name}] Couldn't find instance method `##{method}` on `#{monkey}` despite it being marked as patchable. Perhaps move it to the `new_instance_methods` block?")
end