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

Implement Enumerable#{min,max,min_by,max_by} with optional arguments for Ruby 2.2 #3420

Merged
merged 7 commits into from Jun 11, 2015

Conversation

kachick
Copy link
Member

@kachick kachick commented Jun 2, 2015

No description provided.

def min
min = undefined
each do
o = Rubinius.single_block_arg
Copy link
Contributor

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?

Copy link
Member Author

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 :)

Copy link
Contributor

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 :)

brixen added a commit that referenced this pull request Jun 11, 2015
Implement Enumerable#{min,max,min_by,max_by} with optional arguments for Ruby 2.2
@brixen brixen merged commit f1f7b56 into rubinius:2.2 Jun 11, 2015
@yorickpeterse yorickpeterse mentioned this pull request Jun 11, 2015
27 tasks
@kachick
Copy link
Member Author

kachick commented Jun 11, 2015

Thanks!

@kachick kachick deleted the implement-min-max-optarg branch June 11, 2015 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants