Skip to content

Jonathan Stevens Solution#36

Open
Jonathan75 wants to merge 2 commits intopaircolumbus:masterfrom
Jonathan75:jonathan-stevens-solution
Open

Jonathan Stevens Solution#36
Jonathan75 wants to merge 2 commits intopaircolumbus:masterfrom
Jonathan75:jonathan-stevens-solution

Conversation

@Jonathan75
Copy link

No description provided.

parser.rb Outdated
@@ -1,3 +1,5 @@
def word_in_string?(word, string)
# implement with your code here
return :yes if string.split(/[\s,_,-]/).any? {|x| x==word}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it still work if you use include?(word) instead of any? {|x| x==word}?

@mikegee
Copy link
Member

mikegee commented Aug 17, 2016

👍

@Jonathan75
Copy link
Author

Why thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments