Skip to content

Add variants with positional argument to Hash#transform_keys#2848

Merged
soutaro merged 1 commit intoruby:masterfrom
trinistr:patch-1
Feb 16, 2026
Merged

Add variants with positional argument to Hash#transform_keys#2848
soutaro merged 1 commit intoruby:masterfrom
trinistr:patch-1

Conversation

@trinistr
Copy link
Contributor

…and #transform_keys!

#transform_keys accepts an optional positional argument for mapping keys, which can be combined with a block.

…transform_keys!`

`#transform_keys` accepts an optional positional argument for mapping keys, which can be combined with a block.
Copy link
Member

@soutaro soutaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 🙏

@soutaro soutaro added this to the RBS 4.0 milestone Feb 16, 2026
@soutaro soutaro merged commit c3337ad into ruby:master Feb 16, 2026
21 checks passed
@trinistr trinistr deleted the patch-1 branch February 16, 2026 09:24
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