From: fedzor Date: 2008-06-14T11:04:57+09:00 Subject: Re: fire event when the value of a variable is changed 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