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

Comments

Projects
None yet
2 participants
@blanquer
Copy link

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 = 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 enebo added the ruby 2.0-2.2 label Jan 21, 2015

@enebo

This comment has been minimized.

Copy link
Member

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
You can’t perform that action at this time.