Hi all-
I have a simple ruby question. I have an array of strings. I'd like to determine if that array contains a substring of any of the strings. As an example
a = ['cat','dog','elephant']
a.to_s.include?('ele')
Is this the best way to do it?
Thanks.