From: gabriele renzi Date: 2004-07-12T05:02:26+09:00 Subject: Re: [HELP] : about class variables il Sun, 11 Jul 2004 21:46:06 +0200, "kurk_lord@yahoo.fr" ha scritto:: >Hi all, > >in ruby class variables are private. Who know to do >for making them accessible to the outsite world. I >am looking for to do something like in Java : > >Toto.count > >Toto is my class and count is my class variable. you use accessors: >> class Foo >> @@toto=20 >> def self.toto >> @@toto >> end >> end => nil >> Foo.toto => 20 hope this helps