From: Paul Brannan Date: 2003-02-11T23:56:58+09:00 Subject: Re: inheriting from base classes On Tue, Feb 11, 2003 at 11:18:40PM +0900, Tim Hunter wrote: > My first cut at ImageList had ImageList _contain_ an array of images > and the usual accessor methods for the array, but this was just too > clunky. For example, > > mylist.images << newimage > > is clunky compared to > > mylist << newimage Why not define your own << method? E.g.: class ImageList def <<(other) images << other end end