jduan/gem-analyzer — Issue #2: Use Ruby's loop keyword for infinite loops
Author: sandal
Created: 2012-01-29 22:25:32+00:00
State: open

Because there is a built in infinite loop construct in Ruby, it's not ideal to write code like this:

```ruby
looping = true
while looping do
begin
# ...
looping = false
rescue => e
#...
end
end
```

Instead, it is better to write:

```ruby
loop do
begin
# ...
break
rescue => e
#...
end
end
```