From: "Kenneth    " Date: 2010-07-07T21:09:30+09:00 Subject: Ruby switches Let's say I have something like this case when "".empty? then puts "Empty" when "".nil? then puts "Nil" when "".include?("a") then puts "Includes 'a'" end Is there a way to do something like this instead? (This does not work since the methods in the switches are acting on Object instead of "".) case "" when empty? then puts "Empty" when nil? then puts "Nil" when include?("a") then puts "Includes 'a'" end -- Posted via http://www.ruby-forum.com/.