From: "Damián M. González" Date: 2012-09-16T04:26:41+09:00 Subject: Re: Class variables or class singleton variables? Are we aren't talking about the same thing? >class Foo > @x = 0 > class << self > attr_accessor :x > end >end class << Foo attr_accessor :x @x = 1 end Are not the same? I mean(I may be wrong), when you define a class, self is the class itself(Foo in this case), so is not the same as class << Foo? -- Posted via http://www.ruby-forum.com/.