A
Aldric Giacomoni
Say I have a string like.. At random...
string = "The quick brown fox jumps over the lazy dog"
I'd like to do something like:
puts "Yes!" if string.include? ('quick', 'brown', 'lazy')
Expected behavior : if -any- of them are included, return true.
Is that possible with a built-in method?
Thanks,
--Aldric
string = "The quick brown fox jumps over the lazy dog"
I'd like to do something like:
puts "Yes!" if string.include? ('quick', 'brown', 'lazy')
Expected behavior : if -any- of them are included, return true.
Is that possible with a built-in method?
Thanks,
--Aldric