On 12/20/06, Bret Pettichord <[EMAIL PROTECTED]> wrote:
Željko Filipin wrote:
> while true
> break unless ie.text.include?("loading")
> sleep 1
> end
This is a more concise way of doing the same thing:
while (ie.text.include? 'loading') {sleep 1}
I knew that there had to be a way to do it in a more elegant way, but this
is even more elegant that I expected! Almost as good as
5.times { print "Chunky bacon!" }
:)
--
Zeljko Filipin
zeljkofilipin.com
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general