From: hut Date: 2009-02-21T06:54:38+09:00 Subject: Class variables are still inherited? Hi ruby-talk It's said everywhere that class variables are not inherited anymore in newer versions of ruby. I experience a different behaviour, can you give me any hints about what I'm doing wrong? class Foo @@a = 1 def self.moo() @@a end end class Bar < Foo @@a = 2 end Foo.moo == Bar.moo # both are 2 My ruby comes from this package: ruby-1.9.1-p0.tar.bz2