From: 12 34 Date: 2007-07-02T04:02:58+09:00 Subject: Re: Test equality of each element in an array Ruben Medellin wrote: > 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 Isn't extNot2Move.any? always true? I don't see where the test is made. -- Posted via http://www.ruby-forum.com/.