Project

General

Profile

Actions

Backport #8072

closed

Method#arity for keyword arguments

Added by marcandre (Marc-Andre Lafortune) over 11 years ago. Updated over 10 years ago.


Description

I would expect the following two methods to have the same arity:

def old_way(req, options = {}); end
def new_way(req, **options); end

method(:new_way).arity # => 1, should be -2

Related issues 1 (0 open1 closed)

Related to Backport21 - Backport #9299: Required keyowrd arguments and arityClosedmatz (Yukihiro Matsumoto)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0