Exception: MonkeyBars::NoPatchableClassMethodFoundError

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

Returns a new instance of NoPatchableClassMethodFoundError.



53
54
55
# File 'lib/monkey_bars/errors.rb', line 53

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