Exception: Unparser::Adamantium::MethodBuilder::InvalidArityError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Unparser::Adamantium::MethodBuilder::InvalidArityError
- Defined in:
- lib/unparser/adamantium/method_builder.rb
Overview
Raised when the method arity is invalid
Instance Method Summary collapse
-
#initialize(descendant, method, arity) ⇒ InvalidArityError
constructor
private
Initialize an invalid arity exception.
Constructor Details
#initialize(descendant, method, arity) ⇒ InvalidArityError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initialize an invalid arity exception
18 19 20 |
# File 'lib/unparser/adamantium/method_builder.rb', line 18 def initialize(descendant, method, arity) super("Cannot memoize #{descendant}##{method}, its arity is #{arity}") end |