MenTaLguY
10/9/2007 8:28:00 PM
On Wed, 10 Oct 2007 04:46:37 +0900, bob zee <nlakkakula@gmail.com> wrote:
> Why last k.hello is "Hello from Klass" Not "Hello from Mod"? After
> Klass mixin with Mod, I am extending k object to include Mod so k's
> metaclass methods now point to Mod methods.. right? they should get
> called first before Klass instance methods if I am thinking right.
Ruby inheritance is linearized so that each module only appears once.
Since Mod is already present in k's class ancestry, adding it again
has no effect.
-mental