From: Gregory Brown Date: 2007-01-22T04:21:48+09:00 Subject: Re: module global variables On 1/21/07, Hemant Kumar wrote: > module A > @foo = "Bar" > class << self; attr_accessor :foo; end > end > > p A.foo That's probably the same effect, and a little shorter, too. > PS : Sometimes I really need to think hard to differentiate between a > class and a module. Maybe you'd find this post interesting: http://tinyurl.com/25494o Not exactly the same topic, but related