diff --git a/parser.rb b/parser.rb index adaad3e..125824f 100644 --- a/parser.rb +++ b/parser.rb @@ -1,3 +1,9 @@ def word_in_string?(word, string) - # implement with your code here + + string_store = string.gsub(/[_-]/,' ').split(/\s/) + if string_store.include? word + return :yes.to_sym + else + return :no.to_sym + end end