From: Tobias Reif Date: 2002-02-27T09:00:33+09:00 Subject: Re: RCR?: parallel to until: as_soon_as Joel VanderWerf wrote: >>>as_soon_as @line_count > max >>> raise 'too many lines' >>>end > [...] he's looking for a way to hook @line_count so that the block is > executed as soon as an assignment to @line_count makes the condition > true. Yep. As soon as condition turns true, execute the block once. Or different naming: each_time condition? ## execute block once end would fire the block once each time the condition turns true; also check http://www.ruby-talk.com/34934 What do all you think? Tobi -- * peace&love. * http://www.pinkjuice.com/