Ruby: Case statements

print "Enter your grade: "
grade = gets.chompcase grade
when "A"
  puts 'Well done!'when "B"
  puts 'Try harder!'when "C"
  puts 'You need help!!!'else
  puts "You just making it up!"end

Sources:
 http://www.skorks.com/2009/08/how-a-ruby-case-statement-works-and-what-you-can-do-with-it/