From: Jean-Julien Fleck Date: 2010-08-30T17:33:44+09:00 Subject: Re: case (variable) when type1 ... when type2 ... end > how can I write case statement to check of specific type the variable has? > Something like: It simpler: > case var > when :Fixnum >  puts "#{var} is Fixnum" > when :String >  puts "#{var} is String" > end case var when Fixnum puts "#{var} is Fixnum" when String puts "#{var} is String" end (no ":") Cheers, -- JJ Fleck PCSI1 Lycée Kléber