How to know when an instance variable gets set in Ruby
- by Brian Genisio
Is there any way to override the setting of instance variables in Ruby?
Lets say I set an instance variable:
@foo = "bar"
Can I intercept that and do something (like record it or puts, for instance)