On Apr 2, 2010, at 16:28 , Rick DeNatale wrote:

> [[*(1..20)], 25, [*(30..46)]].flatten.each {|n| p n}

or:

class Range
  alias :to_a :to_ary
end

>> [1..20, 25, 30..46].flatten
=3D> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, =
20, 25, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, =
46]

I think that's a lot prettier... seems safe to me :D