dblack / wobblini.net wrote:
> HI --
>
> On Fri, 13 Oct 2006, jyzhang wrote:
>
> > attr_accessor defines both a writer and a reader
> >
> > cattr_* is for class variables... you know... the kind that looks like
> > @@var
>
> Ruby doesn't have any cattr_* methods, though.  Also, if you write a
> wrapper around class variables, it would be better to call them
> something else, as the "attr" in "cattr" implies that you're dealing
> with an object attribute.  Since class variables are shared by many
> objects, they're not actually representing attributes.

To be clear cattr methods create both instance level and class level
accessors using @@vars for storage. What would be a better name then
class attribute?

T.