Skip to content

Jonathan Stevens Solution - #36

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

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

Conversation

@Jonathan75

Copy link
Copy Markdown

No description provided.

Comment thread 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
Copy Markdown
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

mikegee commented Aug 17, 2016

Copy link
Copy Markdown
Member

👍

@Jonathan75

Copy link
Copy Markdown
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