From: Robert Klemme Date: 2006-05-17T00:19:35+09:00 Subject: Re: Variable Assignment Callback(s)? 2006/5/15, Jake McArthur : > I need a callback for variable assignment; instance variable > assignment is the most important, but others would be an even greater > plus. I was searching for a solution and stumbled across this, > apparently from some past Ruby Talk thread from before my time here. > I was wondering if any of the potential variable assignment callbacks > besides global scope have been fulfilled? Anybody know? Well, you can test it easily youself can't you? Btw, another solution is to change attr_reader, attr and attr_writer to automatically define methods that will invoke callbacks. If you then in your code use accessors all the time you'll get notfied of assignments pretty easy. But: you won't see changes in Array and Hash that way (you probably won't using instance variable callbacks either). Cheers robert