I don't see anything different about this code, except 'cycle' which is
neat.
Why assign the array to 'a' if we're just gonna iterate through it
anyway, though?

Rodrigo Bermejo wrote:
> Mark Thomas wrote:
> 
>> In ruby 1.9:
>>
>> n=0
>> a=["-","\\","|","/"].cycle do |a|
>>   print a
>>   print "\b"
>>   n+=1
>>   sleep 0.1
>>   break if (n % 50).zero?
>> end
> 
> woooow ! - I'm becoming obsolete =c