Exception: MonkeyBars::PatchableClassMethodIsPrivateError

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

Returns a new instance of PatchableClassMethodIsPrivateError.



71
72
73
# File 'lib/monkey_bars/errors.rb', line 71

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