From: Luc Juggery Date: 2006-10-20T20:15:08+09:00 Subject: Re: Neewby question: how to monitor a variable value Thanks a lot Farrel, This is exactly what I needed !!!! Luc On 10/20/06, Farrel Lifson wrote: > On 20/10/06, Luc Juggery wrote: > > Hello All, > > > > I remember reading in a book that we could very easily monitor the > > value of a variable and have for instance an alert message displayed > > each time this variable s modified. I do not manage to find how to do > > this anymore. > > Would you have any clues ? > > > > Thanks a lot, > > Luc > > Sounds like you need the observer design pattern: > http://wiki.rubygarden.org/Ruby/page/show/ObserverPattern > > Farrel > >