On Jun 13, 2008, at 6:24 PM, Mehdi Adda wrote:

> hi !
hej!

> what is the best way to execute a given method each time the value  
> of a
> given variable is changed.

sweetsauce. this is a pretty underused trick in ruby:

a = 5
a.trace_var {|new| puts "a was changed to '#{new}'" }

huzzah!

-------------------------------------------------------|
~ Ari
seydar: it's like a crazy love triangle of Kernel commands and C code