From: "Eregon (Benoit Daloze)" Date: 2012-12-12T02:05:16+09:00 Subject: [ruby-core:50778] [ruby-trunk - Bug #7540] Proc#parameters cannot show :opt with :rest and :keyword 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/