From: Trans Date: 2008-11-11T09:46:07+09:00 Subject: [ruby-core:19789] Re: Proposal: Method#get_args On Nov 10, 7:18�pm, "Roger Pack" wrote: > The only question I have is why would one want to know the names of > the parameters, not just how many (since they're only used locally). > If we do want to know the names of parameters, then we might as well > want their default values [and if we have that...we might as well open > up access somehow to the code of the method/proc, as well, since we'll > have built a code outputter]. > Just my $0.02. One could use it for documenting external interfaces. Eg. A command line parser could map command line to method definition and provide help information based on these parameter names. Just a thought.