There are multiple ways to accomplish that. You could check each string until a match is found using Enumerable#any?
:
str = "alo eh tu"
['alo','hola','test'].any? { |word| str.include?(word) }
Though it might be faster to convert the array of strings into a Regexp:
words = ['alo','hola','test']
r = /#{words.join("|")}/ # assuming there are no special chars
r === "alo eh tu"