"David Garamond" <lists / zara.6.isreserved.com> schrieb im Newsbeitrag
news:40C57D4C.5020603 / zara.6.isreserved.com...
> Is there an easier way other than:

To achieve what?

>   class C
>     @var = "class instance"
>     def C.var; @var end
>     def class_instance_var; @var = "instance"; self.class.var; end
>   end
>
>   p C.new.class_instance_var # -> class_instance

Regards

    robert