Last active
June 1, 2018 21:20
-
-
Save lchanmann/2fa66cd92778cba37d206488fc684652 to your computer and use it in GitHub Desktop.
bob_bot_3
This file contains 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 < Visitor | |
def respond_to_question | |
'Sure.' | |
end | |
def respond_to_yell | |
'Woah, chill out!' | |
end | |
def respond_to_silence | |
'Fine. Be that way!' | |
end | |
def respond_to_anything | |
'Whatever.' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment