Hi,

Am Sonntag, 07. Okt 2007, 21:39:24 +0900 schrieb David A. Black:
> If you want to represent state per class, the best way is to give your
> class an instance variable or accessor:
>
>   class C
>     class << self    # C's singleton class
>       attr_accessor :var
>     end
>   end

I do this all the time. But:

  class D < C ; end

Always keep in mind that `D.var' will be something different
than `C.var'.

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de