6 ms·
The interesting point missed in this article is that mixins actually do create a superclass relationship in Ruby: http://gist.github.com/945435 http://gist.git
by rcoder 15y ago
The interesting point missed in this article is that mixins actually do create a superclass relationship in Ruby:
http://gist.github.com/945435 http://gist.github.com/945435
There's an anonymous superclass injected into the inheritance chain every time a module is included into a class.
So, while it might make sense to use explicit superclasses as a semantic modeling method, the runtime behavior is effectively the same whether you use a mixin or a concrete class.