From: Ian Macdonald Date: 2002-06-20T17:50:18+09:00 Subject: Re: can super call a method multiple classes higher in the hierarchy? On Thu 20 Jun 2002 at 16:47:46 +0900, Juergen Katins wrote: > "Ian Macdonald" schrieb : > > Am I right in thinking that if I call super from method foo in class > > Bar, it does not matter that no identically named method is defined in > > Bar's parent class, just as long as an identically named method _is_ > > defined in the grandparent or an even further removed ancestor class > > of Bar? > > > > It seems to work that way, but I don't remember reading that > > explicitly in the pickaxe book. > > Look at the paragraph atop of this link: > http://home.vr-web.de/juergen.katins/ruby/book/tut_classes.html#Message!send > ing saying: > "The answer has to do with the way Ruby determines which method should be > called when ..." > A similar problem is described there. Thanks. I'd already read that section in the pickaxe book and, while it came close to what I was looking for, it didn't convince me that super wasn't a special case. Ian -- Ian Macdonald | You'll be a guest at a gay party that will ian@caliban.org | have important consequences for you. | | |