Answers for "if string contains anything in array ruby"

6

contains ruby array

>> ['Cat', 'Dog', 'Bird'].include? 'Dog'
=> true
Posted by: Guest on April-08-2020

Code answers related to "if string contains anything in array ruby"

Browse Popular Code Answers by Language