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

Skip to content

Remove Set#to_h #13247

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

Merged
merged 1 commit into from
May 13, 2025
Merged

Remove Set#to_h #13247

merged 1 commit into from
May 13, 2025

Conversation

jeremyevans
Copy link
Contributor

This overrides Enumerable#to_h, but doesn't handle a block, breaking backwards compatibility.

Set#to_h was added in the marshalling support commit, but isn't necessary for that, as the underlying function is called.

Fix psych to call to_h with a block instead of relying on this new Set#to_h.

This overrides Enumerable#to_h, but doesn't handle a block, breaking
backwards compatibility.

Set#to_h was added in the marshalling support commit, but isn't
necessary for that, as the underlying function is called. Remove
the method definition to restore backwards compatibility.
@jeremyevans jeremyevans merged commit 2031992 into ruby:master May 13, 2025
81 checks passed
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.

3 participants