On 8/17/07, Simon Schuster <significants / gmail.com> wrote:
> in this case a "\n"...
>
> ["blah\n", "la\n", "hooray\n"]
>
> array.collect { |x| x - "\n" } doesn't work, and I can't manage to
> find any methods which might do the trick.. pretty basic, but I'm
> still a beginner! thanks.
>
>

array.map {|x| x.chomp } will strip whitespace including new-lines.


-- 
Chris Carter
concentrationstudios.com
brynmawrcs.com