From: Jim Driscoll Date: 2004-01-25T20:23:01+09:00 Subject: Re: Constant inheritance On 25 Jan 2004, at 11:11, David Heinemeier Hansson wrote: > Is there anyway to let a subclass overwrite a constant in the > superclass? As in getting B.new.X in the example below to return 0. If > not are there any similar constructions that would do something > comparable? (short of converting the constant to a method). > You could just use a class variable (e.g. @@x) instead, the downside being that it *would* be variable rather than constant. Jim