Issue #7540 has been updated by Eregon (Benoit Daloze).

Assignee set to Eregon (Benoit Daloze)

Found the fix, just taking time to update related documentation.

no6v: nice catch!
----------------------------------------
Bug #7540: Proc#parameters cannot show :opt with :rest and :keyword
https://bugs.ruby-lang.org/issues/7540#change-34628

Author: no6v (Nobuhiro IMAI)
Status: Open
Priority: Normal
Assignee: Eregon (Benoit Daloze)
Category: core
Target version: 
ruby -v: ruby 2.0.0dev (2012-12-10 trunk 38297) [x86_64-linux]


When an :opt arg is specified with :rest and :key args,
Proc#parameters (as well as *Method) cannot show it as below:

->(opt = :ion, *rest, key: :word){}.parameters # => [[:rest, :rest], [:key, :key]]



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