All blocks are expressions in Ruby, so you can do: `prize = case ...`