From: "marcandre (Marc-Andre Lafortune)" Date: 2013-03-11T10:18:50+09:00 Subject: [ruby-core:53298] [ruby-trunk - Bug #8072][Open] Method#arity for keyword arguments Issue #8072 has been reported by marcandre (Marc-Andre Lafortune). ---------------------------------------- Bug #8072: Method#arity for keyword arguments https://bugs.ruby-lang.org/issues/8072 Author: marcandre (Marc-Andre Lafortune) Status: Open Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: core Target version: current: 2.1.0 ruby -v: r39608 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/