From: unbewusst.sein@... (=?ISO-8859-1?Q?Une_B=E9vue?=) Date: 2010-06-11T15:45:04+09:00 Subject: case when and class I've found in case / when if the case is about a class : case my_var.class when String then puts my_var when Array then my_var.each {|v| puts v} end doesn't work i do have to use : case my_var.class.to_s when 'String' then puts my_var when 'Array' then my_var.each {|v| puts v} end why ? (with ruby 1.9.x) -- � Le verbe aimer est difficile � conjuguer : son pass� n'est pas simple, son pr�sent n'est qu'indicatif, et son futur est toujours conditionnel. � (Jean Cocteau)