> case number
> when 1: 'one'
> when 2: 'two'
> when 3: 'three'
> else
>         'else'
> end >> var

var = case ...
-- 
Posted via http://www.ruby-forum.com/.