diff --git a/parser.rb b/parser.rb index adaad3e..d6d38b7 100644 --- a/parser.rb +++ b/parser.rb @@ -1,3 +1,3 @@ def word_in_string?(word, string) - # implement with your code here + string.split(/[^a-zA-Z]/).include?(word) ? :yes : :no end