Exception: MonkeyBars::MismatchedClassMethodArityError
- Inherits:
-
StandardError
- Object
- StandardError
- MonkeyBars::MismatchedClassMethodArityError
- Defined in:
- lib/monkey_bars/errors.rb
Instance Method Summary collapse
-
#initialize(patcher_name, monkey: nil, method: nil, prepatched_arity: nil, patched_arity: nil) ⇒ MismatchedClassMethodArityError
constructor
A new instance of MismatchedClassMethodArityError.
Constructor Details
#initialize(patcher_name, monkey: nil, method: nil, prepatched_arity: nil, patched_arity: nil) ⇒ MismatchedClassMethodArityError
Returns a new instance of MismatchedClassMethodArityError.
23 24 25 |
# File 'lib/monkey_bars/errors.rb', line 23 def initialize(patcher_name, monkey: nil, method: nil, prepatched_arity: nil, patched_arity: nil) super("[#{patcher_name}] The class 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 |