Class: Method

Inherits:
Object show all
Defined in:
lib/core_ext/method.rb

Instance Method Summary collapse

Instance Method Details

#arity_match?(collection) ⇒ Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/core_ext/method.rb', line 2

def arity_match?(collection)
  arity == -1 or arity == collection.length
end