diff --git a/parser.rb b/parser.rb index adaad3e..5552239 100644 --- a/parser.rb +++ b/parser.rb @@ -1,3 +1,3 @@ def word_in_string?(word, string) - # implement with your code here + string.downcase.scan(/[a-z]+/i).include?(word.downcase) ? :yes : :no end