-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ruby] Alias Handling for
alias_method
(#5206)
`alias_method` is a builtin call that performs a more "dynamic" version of `alias` as it makes use of symbols. This change applies the same alias lowering logic to this function as what happens with `alias` calls. Misc additions: * Addresses warning for `reassign` not having an exhaustive match (due to the `InClause` object) * Strips the leading `*` from collection parameters, as these are referred to in the method body as splatted identifiers without the leading `*`.
- Loading branch information
1 parent
578b422
commit 2842a88
Showing
4 changed files
with
74 additions
and
7 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
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