diff --git a/parser.rb b/parser.rb index adaad3e..9d0c613 100644 --- a/parser.rb +++ b/parser.rb @@ -1,3 +1,8 @@ def word_in_string?(word, string) # implement with your code here + if string.split(/[ -_]/).include?(word) + return :yes + else + return :no + end end