Skip to content

Instantly share code, notes, and snippets.

@zachgersh
Created April 14, 2013 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zachgersh/5384048 to your computer and use it in GitHub Desktop.
Save zachgersh/5384048 to your computer and use it in GitHub Desktop.
Simple gist describing a problem I am having with case statements.
def problems(number)
case number
when number > 99
puts "have a lot of problems"
else
puts "have none"
end
end
problems(100)
@zachgersh
Copy link
Author

Ignore the formatting, I know my else should be on the same line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment