У меня есть строка текста
this is the line
и я хочу вернуть true
, если один из элементов в этом массиве:
['hey', 'format', 'qouting', 'this']
является частью строки, указанной выше.
Итак, для строки выше он должен возвращать true
.
Для этой строки hello my name is martin
это не должно быть.
Я знаю include?
, но я не знаю, как использовать его здесь, если он вообще помогает.