From: Robert Klemme Date: 2005-06-30T21:40:42+09:00 Subject: Re: Q: inheriting from Array, overloading [] Matt C wrote: > Devin Mullins wrote in news:42C34B5F.3050300 > @comcast.net: > >> Change super[key] to super(key) or super key. Remember, [] is just >> another method, and like other methods, it accepts the typical form. >> ... So your code was invoking the super method with key as a >> parameter, taking the return value, and then invoking #[](key) on >> that. >> >> Devin > > It took me a little while, but I get it now. It all comes together. > Very useful example. > > Thanks to both of you. > > Matt There is also a spelling error - compare these: return self.find{|t| t.name = key} # original return self.find{|t| t.name == key} # fake - but better :-) Kind regards robert