3 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
- depends on how you look at it
- programming languages: learning/understanding the subtleties
- Ruby: singleton methods
- Ruby: modules
- Ruby: class methods
Apparently when you create a subclass, that subclass's singleton class has # its superclass's singleton class as an ancestor.
This is a good thing. It allows class methods to be inherited by subclasses.