"Gennady" <gfb / tonesoft.com> schrieb im Newsbeitrag
news:401FC5BB.10809 / tonesoft.com...
> Guoliang Cao wrote:
> > Hi,
> >
> > I'm thinking of submitting a RCR. Here is the draft. Comments are
welcome.
> >
> > Thanks,
> > Cao
>
> Do you know about this syntax currently available?
>
> a = "aaa"
> b = "bbb"
> case
>    when a == "aaa", b == "bbb"
>      puts "Lowercase detected"
>    when a == "AAA", b == "BBB"
>      puts "Uppercase detected"
>    else
>      puts "Detection failed"
> end

Since which version of Ruby?  Thx!

    robert