Wrong words, though it’s quite easy to go look this kind of stuff up in any Ruby documentation (Pragmatic Ruby Guid comes to mind). Here’s the syntax:
case expr
[when expr [, expr]...[then]
expr..]..
[else
expr..]
end
Jason
Wrong words, though it’s quite easy to go look this kind of stuff up in any Ruby documentation (Pragmatic Ruby Guid comes to mind). Here’s the syntax:
case expr
[when expr [, expr]...[then]
expr..]..
[else
expr..]
end
Jason