From: "Hal E. Fulton" Date: 2002-08-08T16:05:38+09:00 Subject: Re: automagic ----- Original Message ----- From: "Tom Sawyer" To: "ruby-talk ML" Sent: Thursday, August 08, 2002 1:59 AM Subject: automagic > here's the basic problem. if your are trying to bind to an array, for > example, in the model, how are you going to "trap" changes to that > array? a model may alter the array via #<< or #sort! or the like, and > such changes are indifferent to accessor_methods. indeed, you can alter > an array in this way via an attr_reader method! My first thought is that you redefine all of these methods so that they trap changes and then call the original corresponding methods. As for someone modifying an array through an attr_reader method... tell 'em, "Don't do that." Hal