Check whether a string contains one of multiple substrings April 2, 2023 by Tarik [needle1, needle2].any? { |needle| haystack.include? needle }