From: James Smith Date: 2006-11-22T06:06:57+09:00 Subject: Is this possible? Is there anyway to override the STDIN of a ruby program, do that when a command such as 'gets' is called somewhere randomly in the program, I am able to control what action is taken. i.e. i don't want it to block if there is nothing in the STDIN buffer, i would like to be able to do my own thing. NOTE: the programs will be generated randomly, so i can't just call a different method (one i defined). But i can add to the code.. Thanks for your time -- Posted via http://www.ruby-forum.com/.