forked from ruby/ruby
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update pass_positional_hash documentation to add some caveats
It is not a good idea to use pass_positional_hash if modifying the keyword arguments or appending positional arguments, as that can result in different behavior without warning on Ruby 3 if the target method does not accept keyword arguments. Update tests to show the issue.
- Loading branch information
1 parent
32c7e0b
commit 97eeab3
Showing
2 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters