On Aug 14, 2011, at 08:47 , I=F1aki Baz Castillo wrote:

>  klass =3D String
>=20
>  case klass
>  when String
>    puts "I'm String class"
>  else
>    puts "I'm nothing..."
>  end

case
when String =3D=3D klass then
  # ...
else
  # ...
end

or to do a much cleaner version of the multi-match example above:

case
when [String, Whatever].include? klass then
  # ...
else
  # ...
end