Exception: MonkeyBars::NewInstanceMethodAlreadyExistsError

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

Returns a new instance of NewInstanceMethodAlreadyExistsError.



5
6
7
# File 'lib/monkey_bars/errors.rb', line 5

def initialize(patcher_name, monkey: nil, method: nil)
  super("[#{patcher_name}] The instance method `##{method}` already exists on `#{monkey}` but is marked as new. Perhaps move it to the `patch_instance_methods` block?")
end