UPDATE 2: For posterity, this is how I\'ve settled on doing it (thanks to Jorg\'s input):
100.step(2, -2) do |x| # my code end >
100.step(2, -2) do |x| # my code end
This question answers yours: about ruby range?
(2..100).step(2) do |x| # your code end