On 7/13/05, Robert Klemme <bob.news / gmx.net> wrote: > Joe Van Dyk wrote: > > On 7/12/05, Daniel Brockman <daniel / brockman.se> wrote: > >> Call `super' from `initialize'. > > > > Errm.. isn't that what he's doing? > > > > module Foo > > attr_reader :foo > > def initialize > > @foo = 'foo' > > super > > end > > end > > Not in Bar as far as I can see. > *That's* the place where it should be. I have zero understanding of this stuff, but I thought #super called the initialize function on the class' parent. So you'd use it for inheritance-type stuff only and not for modules. But I'm most likely mistaken.