il Sun, 11 Jul 2004 21:46:06 +0200, "kurk_lord / yahoo.fr"
<kurk_lord / yahoo.nospam.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