On 4/1/06, Benjohn Barnes <benjohn / fysh.org> wrote:
> => 'tomato, cheese, ham and pineapple'
>
> Is something I'd like to be able to do, and I almost thought it's be
> part of the standard. Is there already a standard way of getting that
> (facets, perhaps?)? Any chance it'll make it in to the standard
> Enumerable?

another alternative:

  %w{tomato cheese ham pineapple}.join(', ').sub(/, (\S+)$/,' and \1')

(I'm not Mr. Grammar, but I usually remove the last comma before the "and")

Cameron