Skip to content

Conversation

@italomatos
Copy link
Collaborator

@italomatos italomatos commented Aug 1, 2022

What changed, and why?

Replace class with only class methods with module extend self

"Reason is that Class is too heavy for creating only class methods. As we discussed earlier a class is supposed to have both data and behavior. If the only thing you care about is behavior then ruby suggests to implement it as a module."

more details: https://www.bigbinary.com/blog/extend-self-in-ruby

@github-actions github-actions bot added the ruby Pull requests that update Ruby code label Aug 1, 2022
Copy link
Collaborator

@compwron compwron left a comment

Choose a reason for hiding this comment

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

:)

@compwron compwron merged commit 51f90be into rubyforgood:main Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ruby Pull requests that update Ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants