There are rarely a reason to use for loops in Ruby. See: https://github.com/bbatsov/ruby-style-guide#syntax