Created
September 5, 2013 02:43
-
-
Save justinrolston/6445442 to your computer and use it in GitHub Desktop.
bob exercise
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 Bob | |
def hey statement | |
return 'Fine. Be that way!' if statement.strip == '' | |
return 'Woah, chill out!' if statement == statement.upcase | |
return 'Sure.' if statement[-1,1] == '?' | |
return 'Whatever.' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment