Exception: Unparser::Adamantium::MethodBuilder::InvalidArityError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/unparser/adamantium/method_builder.rb

Overview

Raised when the method arity is invalid

Instance Method Summary collapse

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

Parameters:

  • descendant (Module)
  • method (Symbol)
  • arity (Integer)


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