I'm running a loop, in which I wait for a user response using the "gets.chomp" command. How can I combine that with a sleep/timer command?
For example. I want it to wait 1 min for the user to enter a word, otherwise it would continue back to the loop.