2 Matching Annotations
- Apr 2021
It seems inelegant to me to split this into two different modules, one to include, the other to extend.
the key thing (one of them) to understand here is that: class methods are singleton methods
Another possible solution would be to use a class Common instead of a module. But this is just a workaround.
- Ruby: singleton methods
- programming languages: learning/understanding the subtleties
- Ruby: modules
- depends on how you look at it
- Ruby: class methods