From: Ezra Zygmuntowicz Date: 2006-06-10T07:06:24+09:00 Subject: Re: ... building my own end-fix statements. --Apple-Mail-4--215146306 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Jun 9, 2006, at 2:49 PM, Jeff Wood wrote: > a.doSomething when a.ready? So maybe something more like this: class X def initialize @foo = 0 end def ready? @foo += 1 @foo = 50 end end def _when(condition, &block) until condition.ready? sleep 0.1 end block.call end x = X.new _when(x) { puts "It's Ready!" } #=> It's Ready! when is already a keyword so you will have to come up with a better name but this kind of does what you want. -Ezra --Apple-Mail-4--215146306--