Issue #9299 has been updated by Marc-Andre Lafortune.

Status changed from Closed to Open

Naruse-san: You're right, the rdoc of Proc#arity was quite out of date. I've committed r45236-r45238 (04042ec6eb4..47d6a7ee1c8) to address this.

Matz: would you have time to review the rdoc of Proc#arity, especially the part about the different treatment of lambdas vs procs?

Thanks

----------------------------------------
Backport #9299: Required keyowrd arguments and arity
https://bugs.ruby-lang.org/issues/9299#change-45565

* Author: Marc-Andre Lafortune
* Status: Open
* Priority: Normal
* Assignee: Yukihiro Matsumoto
----------------------------------------
While fixing #8072, I noticed another bug: a required keyword argument should add 1 to the arity:

    proc{|required:|}.arity # => 0, should be 1



-- 
http://bugs.ruby-lang.org/