SpringFlowers AutumnMoon wrote: > the following line will concat "1" all the way to "10"... but is there > a shorter way... like x . y or must it be this long? > > > p (1..10).inject{|x,y| x.to_s + y.to_s} (1..10).to_a.join > > also... x.to_s + y > won't cause y to convert to a string? No. -- RMagick: http://rmagick.rubyforge.org/ RMagick 2: http://rmagick.rubyforge.org/rmagick2.html