From: Gary Wright Date: 2007-03-02T08:06:59+09:00 Subject: Re: Newbie Question On Mar 1, 2007, at 3:20 PM, james.d.masters@gmail.com wrote: > On Mar 1, 11:35 am, Gary Wright wrote: >> ... >> I think you are asking for something which is quite easy: >> >> class A >> class <> attr_accessor :per_class >> end >> end >> ... > > Yes, this is kind of what I'm referring to; however, my gripe is that > this is somewhat esoteric. The beauty of other parts of Ruby is that > the code is terse and readable. Also, I think that the work-around > that you mentioned (and I've used too) does not truly inherit: I think your use of 'inherit' is misleading. Inheritance generally refers to methods and not to data. I think 'sharing' would be a better word for what you are describing. So you want to share data between a class and all its subclasses: class A class <