From: joey__ Date: 2006-04-03T03:52:38+09:00 Subject: Re: %w{tomato cheese ham pineapple}.join(', ', ' and ') class Array def join_sentence case length when 1 self[0] when 2 "#{self[0]} and #{self[1]}" else "#{self[0...-1].join(', ')} and #{self[-1]}" end end end -- Posted via http://www.ruby-forum.com/.