So I\'m iterating over a range like so:
(1..100).each do |n| # n = 1 # n = 2 # n = 3 # n = 4 # n = 5 end
But what I\'d
See http://ruby-doc.org/core/classes/Range.html#M000695 for the full API.
Basically you use the step() method. For example:
step()
(10..100).step(10) do |n| # n = 10 # n = 20 # n = 30 # ... end