From: Robert Klemme Date: 2011-02-25T15:35:44+09:00 Subject: Re: Q: How to call parent method explistly? On 24.02.2011 20:25, Gary Wright wrote: > > On Feb 24, 2011, at 3:59 AM, Robert Klemme wrote: >> >> Folks, why are you making this so complicated? Nobody mentions the >> standard way of doing this by using "super": > [...] >> Only if you want to call a _different_ method in the super class you >> need to use one of the other approaches. But if you think about it, >> usually this is not needed. > > The original poster specifically asked about calling a different > method in the parent that was also redefined in the child, > which is why I didn't show the use of super. From the original > message: > >> super(name) # want to call Parent#hello(), not _hello() Ah, that was the piece I missed. Sorry for the noise. I'd still question the wisdom of such a design though. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/