From: William Djaja Tjokroaminata Date: 2003-01-12T05:42:28+09:00 Subject: Re: @@'s are not inherited? Tom Sawyer wrote: > On Thursday 09 January 2003 05:48 am, Tom Sawyer wrote: >> please correct me if i'm wrong but i beleive i just discovered something i >> did not realize before: class and module variables (@@) are not inherited >> by subclasses. ugh... > well, i'll correct myself: > @@'s are inherited by subclasses IF they are pre-defined in the parent. that's > important to know and i did not see any mention of it in my pick-axe. Hi, It is Item #19 in the "Things That Newcomers to Ruby Should Know": http://www.glue.umd.edu/~billtj/ruby.html#classvars Regards, Bill