Created
May 22, 2015 17:05
-
-
Save tanelsuurhans/5d946454822d2544edbb to your computer and use it in GitHub Desktop.
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
# option one | |
case variable | |
when "value1" | |
do_stuff | |
when "value2" | |
do_stuff | |
else | |
do_stuff | |
end | |
# option 2 | |
case variable | |
when "value1" | |
do_stuff | |
when "value2" | |
do_stuff | |
else | |
do_stuff | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
officially voting for option #2 now :)