>>>>> "G" == Gavin Sinclair <gsinclair / soyabean.com.au> writes:

G>     attr_private :@foo

 It was proposed but you can't use it. For example

   class A
      def initialize
         @a = 12
      end
   end

   class B < A; end

   b = B.new

   class B
      attr_private :@a
   end

 When ruby execute attr_private, it has lost the information that the 
 instance variable @a was initialized in the class A

 You must know at compile time, if an instance is class local.

Guy Decoux