Exception: MonkeyBars::NewConstantAlreadyExistsError
- Inherits:
-
StandardError
- Object
- StandardError
- MonkeyBars::NewConstantAlreadyExistsError
- Defined in:
- lib/monkey_bars/errors.rb
Instance Method Summary collapse
-
#initialize(patcher_name, monkey: nil, constant: nil) ⇒ NewConstantAlreadyExistsError
constructor
A new instance of NewConstantAlreadyExistsError.
Constructor Details
#initialize(patcher_name, monkey: nil, constant: nil) ⇒ NewConstantAlreadyExistsError
Returns a new instance of NewConstantAlreadyExistsError.
29 30 31 |
# File 'lib/monkey_bars/errors.rb', line 29 def initialize(patcher_name, monkey: nil, constant: nil) super("[#{patcher_name}] The constant `#{constant}` already exists on `#{monkey}` but is marked as new. Perhaps move it to the `patch_constants` block?") end |