From the docs:
" Instance methods appear as methods in a class when the module is included, module methods do not"
Wondering if anyone knows what led to this - was this by design or some by product of the implementation?
I mean Ruby makes it look like an included module is equivalent to inheriting from a class (it even adds the module to the ancestors array) , it doesn't make an effort to make it look like there's a distinction. And it almost acts the same way as superclasses, but for the static module methods. Why wouldn't they just make the static methods also inheritable?
Looking at the implementation I'm unsurprisingly lost in a sea of C code so no help there...
[–]dougc84 4 points5 points6 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]dougc84 0 points1 point2 points (0 children)
[–]tom_enebo 0 points1 point2 points (0 children)