Martin DeMello wrote:
> I like the "case true" idiom here:
> 
> result = case true
> when a == b: 0
> when a < b  : 1
> when a > b  : -1
> end
> 
> martin

Going further OT, but you can omit the "true":

result = case
when a == b: 0
when a < b  : 1
when a > b  : -1
end

-- 
       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407