From: naruse@... Date: 2014-02-22T06:58:21+00:00 Subject: [ruby-core:60992] [Backport21 - Backport #8072] [Feedback] Method#arity for keyword arguments Issue #8072 has been updated by Yui NARUSE. Status changed from Open to Feedback Assignee changed from Yukihiro Matsumoto to Marc-Andre Lafortune ---------------------------------------- Backport #8072: Method#arity for keyword arguments https://bugs.ruby-lang.org/issues/8072#change-45393 * Author: Marc-Andre Lafortune * Status: Feedback * Priority: Normal * Assignee: Marc-Andre Lafortune ---------------------------------------- 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 -- http://bugs.ruby-lang.org/