Project

General

Profile

This project is closed and read-only.

Actions

Backport #8072

closed

Method#arity for keyword arguments

Backport #8072: Method#arity for keyword arguments

Added by marcandre (Marc-Andre Lafortune) over 13 years ago. Updated over 12 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: PDF Atom