From: Robert Klemme Date: 2008-01-16T03:39:57+09:00 Subject: Re: Overridding A Method Via A Mixin On 15.01.2008 19:10, Andrew Stewart wrote: > On 15 Jan 2008, at 17:40, Robert Klemme wrote: >> Because of the position in the inheritance hierarchy: >> >> irb(main):001:0> module Bar;end >> => nil >> irb(main):002:0> class Foo >> irb(main):003:1> include Bar >> irb(main):004:1> end >> => Foo >> irb(main):005:0> Foo.ancestors >> => [Foo, Bar, Object, Kernel] >> >> Methods defined in Foo are always found before their counterparts >> in included modules. Consequently you can override super class >> methods with a module. > > Aha, of course. Thank you for the clear explanation. You're welcome! > I really should have worked that one out myself! Ah, no worries. Once in a while this just happens to all of us. Btw, you got a nice website there (with a typo on the vortex page *g*). Kind regards robert