Skip to content
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

Rubocop: prefer class << self syntax #95

Merged
merged 1 commit into from
Sep 4, 2024
Merged

Conversation

mockdeep
Copy link
Owner

@mockdeep mockdeep commented Sep 4, 2024

Why

If we want to have private methods, then we have to use class << self.
Having all modules use this format consistently makes diffs smaller when
new private methods are added, since we don't need to switch syntax.

**Why**

If we want to have private methods, then we have to use `class << self`.
Having all modules use this format consistently makes diffs smaller when
new private methods are added, since we don't need to switch syntax.
@mockdeep mockdeep self-assigned this Sep 4, 2024
@mockdeep mockdeep merged commit 1c1c0aa into main Sep 4, 2024
5 checks passed
@mockdeep mockdeep deleted the rf-git_refactors_01 branch September 4, 2024 00:05
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.

1 participant