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