On Jun 6, 2005, at 2:49 PM, Pete Elmore wrote:

> James Edward Gray II wrote:
>
>> If your intention is to read from the keyboard only, just make  
>> sure  call gets() on STDIN with STDIN.gets() or $stdin.gets()
>>
> Yeah, that's what I'm doing.  What I was wondering was if there was  
> something I could do to point Kernel#gets back at stdin.

I'm sure there is.  Off the top of my head (untested!):

module Kernel
     def gets() $stdin.gets end
end

But why not just ask Ruby for what you really meant in the first  
place?  ;)

James Edward Gray II