Is it possible to create classes with a dynamic name? Example:

name = "Test"

class name		# this fails
 def write
    puts "TEST"
  end
end

puts Object::const_get(name).new.write		# => "TEST"