From: StephenSykes Date: 2004-07-30T07:11:43+09:00 Subject: Class variables I know the rules for class variables have changed in 1.9, but I am not understanding this behaviour (this works ok in 1.8.x): >> module M >> def self.included(klass) >> klass.class_eval("@@y = 22") >> class <> @@x = 33 >> end >> end >> end => nil >> ?> class B >> include M >> def show >> p @@y >> p @@x >> end >> end => nil >> ?> B.new.show 22 NameError: uninitialized class variable @@x in B from (irb):14:in `show' from (irb):18 from :0 $ ruby -v ruby 1.9.0 (2004-07-29) [i686-linux] Stephen