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/