Ruby help

Hi, my name is Emmanuel, im from argentina.
Sorry for my english :stuck_out_tongue:

I have a problem with ruby, im very new in this.

i try to execute this code:

1 # gets y chomp
3 puts “En que ciudad vives?”
5 # STDOUT - constante global - la salida estándar del programa
6 # flush - vacía los datos almacenados temporalmente hacia el
7 # sistema operativo
8 STDOUT.flush
10 # gets - regresa una cadena y el caracter ‘\n’
11 # chomp - elimina el caracter ‘\n’
12 ciudad = gets.chomp
13 puts "La ciudad es " + ciudad
15 # para saber en qué objeto te encuentras
16 puts self

but when de windows command open, and i have to write the name of my
city, i cant write, my keyboard dosnt write, and the window remain

thank you :slight_smile:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs