Ruby termasuk atau itu

values = ["val1", "val2", "val3", "val4"].to_set
myarray.any? { |x| values.include?(x) }
Lioruby