Skip to content

Instantly share code, notes, and snippets.

@tanelsuurhans
Created May 22, 2015 17:05
Show Gist options
  • Save tanelsuurhans/5d946454822d2544edbb to your computer and use it in GitHub Desktop.
Save tanelsuurhans/5d946454822d2544edbb to your computer and use it in GitHub Desktop.
# 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
@jwirman
Copy link

jwirman commented May 26, 2015

officially voting for option #2 now :)

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