Skip to content

Instantly share code, notes, and snippets.

@fukayatsu
Created December 24, 2015 04:31
Show Gist options
  • Save fukayatsu/059b41856ebd0c7b0823 to your computer and use it in GitHub Desktop.
Save fukayatsu/059b41856ebd0c7b0823 to your computer and use it in GitHub Desktop.
デフォルトの処理を上の方に持ってきたいけど例外処理使えでFAかもしれない
# 1. if not (unless)
if foo != bar
# irregular case
else
# default case
# 2. case
case
when foo != bar
# irregular case
else
# default case
# 3. default(?)
default
# default case
except foo == bar
# irregular case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment