Exception: MonkeyBars::NewConstantAlreadyExistsError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/monkey_bars/errors.rb

Instance Method Summary collapse

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