From: "Eregon (Benoit Daloze)" Date: 2012-12-11T09:57:40+09:00 Subject: [ruby-core:50743] [ruby-trunk - Bug #7540] Proc#parameters cannot show :opt with :rest and :keyword Issue #7540 has been updated by Eregon (Benoit Daloze). I've started to take a look at this, and I wish to solve it if I find the way. But of course if I'm taking too much time or somebody solves it before it's fine, although I would prefer collaborating with them (I suppose mame, as he did r34137). ---------------------------------------- Bug #7540: Proc#parameters cannot show :opt with :rest and :keyword https://bugs.ruby-lang.org/issues/7540#change-34595 Author: no6v (Nobuhiro IMAI) Status: Open Priority: Normal Assignee: 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/