On Sun, 11 May 2003 11:30:22 +0900
elbows / spamcop.net (Nathan Weston) wrote:

> In ruby 1.6.8, overriding class variables cause weird (to me at least)
> results:
> 
> class Foo
>   Const = 0
> 
<snip>

That's not a class variable.  You want @@const or something... although
a class variable isn't a const.  OTOH, you're changing it, so you don't
want a const, either. ;-)

Use @@var.  It acts like you want.

-- 
Ryan Pavlik <rpav / users.sf.net>

"This sand tastes like dirt..." - 8BT