From: "Rubén Medellín" Date: 2007-07-01T14:15:08+09:00 Subject: Re: Test equality of each element in an array On Jun 30, 11:00 pm, 12 34 wrote: > if extNot2Move.{any of the elements} == File.extname(fn) ## this is Surprise. if extNot2Move.any?{|something| do something} and, if you only want to match the extension, and trust in File.extname, you may go with the Regexp