Exception: MonkeyBars::PatchableClassMethodIsNotPrivateError

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

Returns a new instance of PatchableClassMethodIsNotPrivateError.



65
66
67
# File 'lib/monkey_bars/errors.rb', line 65

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