Forum: Ruby help

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Emma P. (Guest)
on 2009-05-11 10:31
Hi, my name is Emmanuel, im from argentina.
Sorry for my english :P

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 :)
This topic is locked and can not be replied to.