From: Christoph Date: 2002-09-12T09:38:52+09:00 Subject: Re: private variables "Paul Brannan" wrote in .... > I'm not sure there's much value in secret attributes/accessors. I can > see why you'd want it (if you need to call a method every time you Actually I am fairly neutral about ``private_variables'' ... > update a private instance varaible), but every method in the class still > has access to both the accessor and the private instance variable, I > can't help but feeling that there is a better solution. Oh well my half-baked ``solution'' is well-done nonsense anyway (semantically it is plain wrong) In the mean time how about using _@I_am_a_private_instance_variable - this also makes Guy's ``attr_reader problem'' obsolete? /Christoph