Robert Klemme
1/31/2008 1:56:00 PM
2008/1/30, Wyatt Greene <greenewm@yahoo.com>:
> a = MyFirstClass.new
> a.start_my_loop do
> if rand(5) == 3
> false
> else
> true
> end
> end
Why make it more complicated than necessary?
a = MyFirstClass.new
a.start_my_loop do
rand(5) == 3
end
But I guess the OP rather wanted a concurrency solution.
Cheers
robert
--
use.inject do |as, often| as.you_can - without end