Created
June 11, 2013 04:20
-
-
Save surrealdetective/5754461 to your computer and use it in GitHub Desktop.
temperature_bot likes feelings
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
def temperature_bot(temp) | |
case temp | |
when 18..21 | |
"I like this temperature" | |
else | |
"This is uncomfortable for me" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment