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

Closed
blanquer opened this issue Jan 21, 2015 · 1 comment · Fixed by #2492
Closed

Proc.parameters return an empty array #2489

blanquer opened this issue Jan 21, 2015 · 1 comment · Fixed by #2492

Comments

@blanquer
Copy link

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

Repro steps:

p = Proc.new do |arg1: |
  puts arg1
end

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 9.0.0.0.pre2 milestone Jan 21, 2015
@enebo
Copy link
Member

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants