From: Dave Thomas Date: 2000-12-23T08:19:45+09:00 Subject: [ruby-talk:7982] Re: defined? problem? "Christoph Rippel" writes: > > class Fred > > attr_accessor :bert > > > > def thing > > a = bert # uses accessor > > bert = a + 1 # creates a new local variable called bert > > end > > end > pathology confused me pretty much the first day I was toying around > with ruby and I did not fully understand why this happens until > recently. I think there are good reasons to override this confusing > behavior of Modulo.attr_accessor in Class.attr_accessor. How would you do that? Dave