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

Return an enumerator if no block is given #58

Merged
merged 2 commits into from
Jun 18, 2018

Conversation

soulcutter
Copy link
Owner

This is the typical pattern for Enumerable objects, and was an oversight
that it was not already-included here.

See http://ruby-doc.org/core-2.4.1/Object.html#method-i-to_enum

This is the typical pattern for Enumerable objects, and was an oversight
that it was not already-included here.

See http://ruby-doc.org/core-2.4.1/Object.html#method-i-to_enum
@soulcutter
Copy link
Owner Author

This needs a test

@fanantoxa
Copy link
Collaborator

@soulcutter Added test for this.

@soulcutter soulcutter merged commit 564d479 into master Jun 18, 2018
@soulcutter soulcutter deleted the better-enumerator-behavior branch March 10, 2020 03:04
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.

2 participants