From: Ezra Zygmuntowicz Date: 2007-06-21T04:39:32+09:00 Subject: Re: if == any item in an array On Jun 20, 2007, at 12:07 PM, 12 34 wrote: > PhotoEndings = %w[JPG,MRW,JPE] > MovieEndings = %w[AVI] > case ext # determined from the photo file name > when PhotoEndings > > when MovieEndings > > else > end PhotoEndings = %w[JPG,MRW,JPE] MovieEndings = %w[AVI] case ext # determined from the photo file name when *PhotoEndings when *MovieEndings end Cheers- -- Ezra Zygmuntowicz -- Lead Rails Evangelist -- ez@engineyard.com -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273)