case / when (Ruby)

case/when is Ruby's classic multi-branch conditional, like a switch. Each when uses the === operator.