Project

General

Profile

Actions

Bug #7540

closed

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

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

Status:
Closed
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]]

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0