Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proc.parameters return an empty array #2489

blanquer opened this issue Jan 21, 2015 · 1 comment

Proc.parameters return an empty array #2489

blanquer opened this issue Jan 21, 2015 · 1 comment


Copy link

@blanquer blanquer commented Jan 21, 2015

Invoking the .parameters method of a Proc seems to return an empty array, rather than the parameters definition.

Repro steps:

p = do |arg1: |
  puts arg1

puts "Params: #{p.parameters.inspect}"

Using ruby 2.2.0: (and it is the same for 2.1.x)

Params: [[:keyreq, :arg1]]

Using Jruby-head (ruby9000) as of today:

Params: []
@enebo enebo added this to the milestone Jan 21, 2015
Copy link

@enebo enebo commented Jan 21, 2015

Yeah sorry we knew about this one from some tagged out tests in MRI but we will make sure we get this for pre2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants