On Fri, Apr 2, 2010 at 6:33 PM, Roger Pack <rogerpack2005 / gmail.com> wrote:
> David Springer wrote:
>> Will this work:
>> [1..20,30..46].each{|r| r.each {|n| p n}}
>
> Yeah that works.
>
> I guess if I need individual values in there (like 25) I can do
>
> [1..20, 25..25, 30..46].each{|r| r.each {|n| p n}}
>
> So that'll work.

or

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

-- 
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale