Exception: MonkeyBars::MismatchedInstanceMethodArityError

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, prepatched_arity: nil, patched_arity: nil) ⇒ MismatchedInstanceMethodArityError

Returns a new instance of MismatchedInstanceMethodArityError.



17
18
19
# File 'lib/monkey_bars/errors.rb', line 17

def initialize(patcher_name, monkey: nil, method: nil, prepatched_arity: nil, patched_arity: nil)
  super("[#{patcher_name}] The instance method `##{method}` on `#{monkey}` has an arity of #{patched_arity} but a prepatched arity of #{prepatched_arity}. If you want to ignore this error, set `ignore_arity_errors: true`.")
end