From: Rich Kilmer Date: 2001-11-14T01:15:35+09:00 Subject: [ruby-talk:25025] RE: attr_accessor question Do you need to know when a specific variable changes, or if an object is "dirty" (any variable has changed)? This brings up at question: How do the methods attr, attr_accessor, attr_reader and attr_writer depend on each other?...or do they? -Rich -----Original Message----- From: Michael Sullivan [mailto:mps@blackbird.discomsys.com] Sent: Tuesday, November 13, 2001 11:08 AM To: ruby-talk ML Subject: [ruby-talk:25022] attr_accessor question I was wondering if when one has defined "attr_accessor" for their instance variables if there was any way to determine when one of the variables changes. I'd prefer not to write my own accessors since the attr_accessor construct does things so nicely for me. Thanks, Mike -- Michael P. Sullivan Distributed Computing Systems, LLC Cell: 516-429-2080 E-Mail: mps@discomsys.com http://www.discomsys.com/ * UNIX Systems and Database Consulting, Architecture and Management * "Failing to plan, is planning to fail... plan for the worst, hope for the best"