-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
feature requeststyle guideRequires update(s) to the Ruby Style GuideRequires update(s) to the Ruby Style Guide
Description
Since Ruby v3.0, alias_method
returns the alias name created, while alias
does not. This allows for DSL chaining:
private alias_method :one, :two
alias
returns nil
, so, this is invalid:
private alias one two
I usually see that RuboCop favors new features/abilities in its defaults, such as anonymous &
and ...
, so I think this change would better align with RuboCop's defaults.
Metadata
Metadata
Assignees
Labels
feature requeststyle guideRequires update(s) to the Ruby Style GuideRequires update(s) to the Ruby Style Guide