[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Until method.is_called?

Tim Mcd

8/23/2008 6:54:00 PM

is there a way to settup an until loop 'until' a method is called? Is it
possible currently?

Something like this:

until Klass.sometin.is-called? do
...
end

thanks for the help
--
Posted via http://www.ruby-....

2 Answers

Tim Mcd

8/23/2008 8:22:00 PM

0

Sorry about my previous post, both my brain and shift keys were wacking
out. >_<
Any help on the problem?
--
Posted via http://www.ruby-....

Farrel Lifson

8/23/2008 8:31:00 PM

0

2008/8/23 Tim Mcd <tmcdowell@gmail.com>:
> is there a way to settup an until loop 'until' a method is called? Is it
> possible currently?
>
> Something like this:
>
> until Klass.sometin.is-called? do
> ...
> end
>
> thanks for the help
> --

Have a look at the Observable module in the standard library.

Farrel
--
Aimred - Ruby Development and Consulting
http://www....