Accessing class instance variable from instance method

Might be prettier as:

Is there an easier way other than:

class C
   @var = "class instance"
   # def C.var; @var end

     class << self
       attr_accessor :var
     end

···

   def class_instance_var; @var = "instance"; self.class.var; end
end

p C.new.class_instance_var # -> class_instance