Created
April 14, 2013 20:18
-
-
Save zachgersh/5384048 to your computer and use it in GitHub Desktop.
Simple gist describing a problem I am having with case statements.
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
def problems(number) | |
case number | |
when number > 99 | |
puts "have a lot of problems" | |
else | |
puts "have none" | |
end | |
end | |
problems(100) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ignore the formatting, I know my else should be on the same line.