From: Gavin Sinclair Date: 2002-12-13T14:14:14+09:00 Subject: Re: Inheritance Question From: "Jim Freeze" > Well duh, as soon as I hit send I realized that I had not looked far > enough and that what I had posted would not work. The way Matrix is > currently written, it is nearly impossible to extend through > inheritance. So, instead of using a 'is-a' type class, below is a > 'has-a' type class. This method should work but has the drawback as > before, every public method of Matrix that you want exposed must be > wrapped. > > [...] In effect, you are adding methods to the Matrix class, so why don't you ... ? class Matrix def all_my_wonderful_methods ... end end Gavin