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

Hash#each_pair should be a true alias of Hash#each #2842

Closed
djberg96 opened this issue Apr 17, 2015 · 0 comments
Closed

Hash#each_pair should be a true alias of Hash#each #2842

djberg96 opened this issue Apr 17, 2015 · 0 comments

Comments

@djberg96
Copy link
Contributor

@djberg96 djberg96 commented Apr 17, 2015

The Hash#each_pair method should be an alias of Hash#each:

# MRI (2.2.1p85)
irb(main):001:0> h = {}
irb(main):002:0> h.method(:each) == h.method(:each_pair)
=> true

# JRuby (jruby 9.0.0.0.pre1)
irb(main):001:0> h = {}
irb(main):002:0> h.method(:each) == h.method(:each_pair)
=> false
@headius headius closed this in b764568 Apr 17, 2015
@headius headius added this to the 9.0.0.0.pre2 milestone Apr 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants