def create_new(factory,args) factory.new args end obj = create_new(Array,["R","O","R"]) puts "Objeto cirado pela Factory: #{obj}" puts "Posicao 0: #{obj[0]}" puts "Posicao 1: #{obj[1]}" puts "Posicao 2: #{obj[2]}"