From: Robert Klemme Date: 2004-02-20T20:23:19+09:00 Subject: Re: inheriting constants "Ara.T.Howard" schrieb im Newsbeitrag news:Pine.LNX.4.44.0402191548060.8595-100000@fattire.ngdc.noaa.gov... > > is this an appropriate way to inherit constants? Looks ok to me. It's just that I don't like unnecessary "breaks" of loops which is why I'd define options() like this: def options opts = [] k = self.class while k && defined?(k::OPTIONS) opts.concat(k::OPTIONS) k = k.superclass end opts end :-) robert