Skip to content

Instantly share code, notes, and snippets.

@flazz
Created February 22, 2011 02:10
Show Gist options
  • Save flazz/838098 to your computer and use it in GitHub Desktop.
Save flazz/838098 to your computer and use it in GitHub Desktop.
many tests of one value
if r == P
#do_something ...
elsif r * 2 < Q
#do_something ...
elsif some_test(r)
#do_something ...
else
raise "unpossible"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment