Exception: MonkeyBars::PatchableClassMethodIsProtectedError

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

Returns a new instance of PatchableClassMethodIsProtectedError.



83
84
85
# File 'lib/monkey_bars/errors.rb', line 83

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