Forum: Ruby loop?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1846e9e948e0c72fa0032a6019443e0f?d=identicon&s=25 Ali Y (Guest)
on 2007-04-11 22:09
(Received via mailing list)
hi how can I make a loop, to make the program run foreve
r'?
4299e35bacef054df40583da2d51edea?d=identicon&s=25 James Gray (bbazzarrakk)
on 2007-04-11 22:29
(Received via mailing list)
On Apr 11, 2007, at 3:08 PM, Ali Y wrote:

> hi how can I make a loop, to make the program run foreve
> r'?

loop do
   # ...
end

Hope that helps.

James Edward Gray II
1846e9e948e0c72fa0032a6019443e0f?d=identicon&s=25 Ali Y (Guest)
on 2007-04-12 09:58
(Received via mailing list)
Thank you.
1846e9e948e0c72fa0032a6019443e0f?d=identicon&s=25 Ali Y (Guest)
on 2007-04-12 10:24
(Received via mailing list)
hey but this doesnt work with ruby2exe script.. :S
7bf65dcb7e862416161ea9bb591c2d8d?d=identicon&s=25 Macario Ortega (macario)
on 2008-11-12 09:09
Ali Y wrote:
> hey but this doesnt work with ruby2exe script.. :S

But how do you limit the amout of cpu it uses?
This topic is locked and can not be replied to.