From: Josh Cheek Date: 2011-09-21T13:57:12+09:00 Subject: Re: appending \n to each element in an array --20cf3071d052060b8204ad6c60a8 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Sep 20, 2011 at 9:27 AM, Joe Collins wrote: > I have an array > DOG > CAT > HAT > BOY HOOD > > etc > > I want to put a newline at the end of each phrase in the array. > > Is there an easy way to do this or must I loop and do it. > > thanks in advance > Joe > > Considering the use cases for something like this makes it seem decently questionable. Can you explain the problem you think this will solve? (ie the only obvious use case I can think of is embedding text in a template, but if you're doing something like that, then you probably know about map and each and join, which could be used to solve this problem anyway) On Tue, Sep 20, 2011 at 10:06 AM, Adam Prescott wrote: > On Tue, Sep 20, 2011 at 3:57 PM, Londiche, Jeanne < > j.londiche@progressiverecruitment.com> wrote: > > > I am looking for a good candidate on ruby and rails. > > > > Do you have any names for me? > > > > David Heinemeier Hansson. > I I laughed out loud. --20cf3071d052060b8204ad6c60a8--