On Saturday 11 January 2003 01:42 pm, William Djaja Tjokroaminata wrote: > Tom Sawyer <transami / transami.net> 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 Item #0 in the "Things That Newcomers to Ruby Should Know": They should know "Things That Newcomers to Ruby Should Know" exists! :-) -- tom sawyer, aka transami transami / transami.net .''. .''. . *''* :_\/_: . :_\/_: _\(/_ .:.*_\/_* : /\ : .'.:.'. .''.: /\ : ./)\ ':'* /\ * : '..'. -=:o:=- :_\/_:'.:::. | ' *''* * '.\'/.' _\(/_'.':'.' : /\ : ::::: = *_\/_* -= o =- /)\ ' * '..' ':::' === * /\ * .'/.\'. '._____ * | *..* : |. |' .---"| * | _ .--'| || | _| | * | .-'| __ | | | || | .-----. | |' | || | | | | | || | ___' ' /"\ | '-."". '-' '-.' '` |_. ------------------------------------------------------------