Issue #7540 has been updated by no6v (Nobuhiro IMAI).


Cool! We are lucky to find this, and then fixed. Thanks :).

----------------------------------------
Bug #7540: Proc#parameters cannot show :opt with :rest and :keyword
https://bugs.ruby-lang.org/issues/7540#change-34643

Author: no6v (Nobuhiro IMAI)
Status: Closed
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/