Exception: MonkeyBars::NewClassMethodAlreadyExistsError

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

Returns a new instance of NewClassMethodAlreadyExistsError.



11
12
13
# File 'lib/monkey_bars/errors.rb', line 11

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