Hello i just started learing ruby tonight but the first little code
example from the book doesnt work. It creates a ruby file and when i
click on the ruby file a cmd window opens up and shows me the first line
"Say something, please: " so i write something there and press return
and then the cmd window just shuts every time.
print "Say something, please: "
user_input = gets.chomp
print "You said #{user_input} .\n"
print "Backwards, it reads #{user_input.reverse} .\n"
print "The message is #{user_input.length} characters long.\n"
--
Posted via http://www.ruby-forum.com/.