Exception: MonkeyBars::NoPatchableClassMethodFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- MonkeyBars::NoPatchableClassMethodFoundError
- Defined in:
- lib/monkey_bars/errors.rb
Instance Method Summary collapse
-
#initialize(patcher_name, monkey: nil, method: nil) ⇒ NoPatchableClassMethodFoundError
constructor
A new instance of NoPatchableClassMethodFoundError.
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 |