Issue #9299 has been reported by marcandre (Marc-Andre Lafortune).

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

Author: marcandre (Marc-Andre Lafortune)
Status: Open
Priority: Normal
Assignee: marcandre (Marc-Andre Lafortune)
Category: core
Target version: 
ruby -v: 2.1.0
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN


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/