Exception: MonkeyBars::NewInstanceMethodAlreadyExistsError
- Inherits:
-
StandardError
- Object
- StandardError
- MonkeyBars::NewInstanceMethodAlreadyExistsError
- Defined in:
- lib/monkey_bars/errors.rb
Instance Method Summary collapse
-
#initialize(patcher_name, monkey: nil, method: nil) ⇒ NewInstanceMethodAlreadyExistsError
constructor
A new instance of NewInstanceMethodAlreadyExistsError.
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 |