Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix Set#to_h to be backwards compatible when called with a block #13248

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

Closed
wants to merge 1 commit into from

Conversation

jeremyevans
Copy link
Contributor

Set includes Enumerable, and Enumerable#to_h accepts a block, so there is likely code relying on the block being respected and not ignored. If a block is given, call super (Enumerable#to_h) to restore backwards compatibility.

Also add tests and documentation for the method.

Set includes Enumerable, and Enumerable#to_h accepts a block, so
there is likely code relying on the block being respected and not
ignored.  If a block is given, call super (Enumerable#to_h) to
restore backwards compatibility.

Also add tests and documentation for the method.
@jeremyevans
Copy link
Contributor Author

Closing, as Set#to_h was removed in #13247

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.

1 participant