If you just want to check if the array contains that string somewhere, 
can you just use:

if foo =~ array.join(" ")
   blah
else
   blah2
end

-- 
Posted via http://www.ruby-forum.com/.