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/