From: Mark Wilden Date: 2008-05-24T13:11:47+09:00 Subject: Re: Ruby observer module On May 23, 2008, at 12:34 PM, S2 wrote: > Yes, in this case it makes sense, but think of this: > > def do_stuff > @mint = 'blue' > notify_observers > end > > Nice and clean, isn't it? > If I implement something like you sad, wouldn't it make more sense > to create > a @changed variable in the Subject class, and call notify_observers > only if > @changed == true instead of forcing a call to changed every time? Maybe it's because there might be another event beside changed ? ///ark