From: Sean Chittenden Date: 2002-01-04T18:30:48+09:00 Subject: [ruby-talk:30194] Re: chomp for arrays? > I was wondering if there was a built-in for chomping an Array. I was > going to write a little one liner to include in various places, but > it seems like it'd be useful to have chomp be able to accept an > array as well. Has there been any discussion on this or reasons not > to? ar = ["foo\n", "bar\n"] ar.each { |a| if a.type == String; then a.chomp!; end } -- Sean Chittenden