From: David Heinemeier Hansson Date: 2004-01-25T20:31:44+09:00 Subject: Re: Constant inheritance > You could just use a class variable (e.g. @@x) instead, the downside > being that it *would* be variable rather than constant. Right. The problem is that this really is a constant. The previous example was a bit abstract. This should be more telling of my intentions: class Subscription # abstract def price_with_discount PRICE * 0.9 end end class BasicSubscription < Subscription PRICE = 19 end class PlusSubscription < Subscription PRICE = 49 end ...but perhaps you're right. A class variable would probably suffice. -- David Heinemeier Hansson. http://www.loudthinking.com/ -- Broadcasting Brain