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
Implement Enumerable#{min,max,min_by,max_by} with optional arguments for Ruby 2.2 #3420
Conversation
def min | ||
min = undefined | ||
each do | ||
o = Rubinius.single_block_arg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is o
supposed to mean in this case? Can do get rid of the single letter variables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't touch the code, but the variable names have been rewritten :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I wasn't condemning you for it, but when changing this anyway it would be nice to take care of cases like this :)
bf37aed
to
8ef28a0
Compare
Implement Enumerable#{min,max,min_by,max_by} with optional arguments for Ruby 2.2
Thanks! |
No description provided.