Project

General

Profile

Bug #7540

Proc#parameters cannot show :opt with :rest and :keyword

Added by no6v (Nobuhiro IMAI) over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 2.0.0dev (2012-12-10 trunk 38297) [x86_64-linux]
Backport:
[ruby-core:50735]

Description

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

Also available in: Atom PDF