I currently do this:

[Kernel,String,Object].each do |klass|
case klass.to_s
  when 'Kernel' :
    puts 'I\'m doing stuff with object Kernel'
  when 'String' :
    puts 'I\'m doing stuff with object String'
  when 'Object' :
    puts 'I\'m doing stuff with object Object'
  end
end


Is there a better way?