Last active
June 1, 2018 21:13
-
-
Save lchanmann/93ea9ef953bc8ac00982dc0aeabfead6 to your computer and use it in GitHub Desktop.
bobbot_1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BobBot | |
def respond(message) | |
[Question, Yell, Silence, Anything].each do |type| | |
return type.respond if type.valid?(message) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment