Exception: MonkeyBars::PatchableClassMethodIsNotProtectedError

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

Returns a new instance of PatchableClassMethodIsNotProtectedError.



77
78
79
# File 'lib/monkey_bars/errors.rb', line 77

def initialize(patcher_name, monkey: nil, method: nil)
  super("[#{patcher_name}] The class method `.#{method}` on `#{monkey}` is not protected, but is on the patch. Remove it from `protected` in your patch.")
end