From: "no6v (Nobuhiro IMAI)" Date: 2012-12-12T09:59:12+09:00 Subject: [ruby-core:50799] [ruby-trunk - Bug #7540] Proc#parameters cannot show :opt with :rest and :keyword 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/