Use a File
for IO
with irb, see InputMethod
Methods
Class Public methods
new(file) Link
Creates a new input method object
open(file, &block) Link
Instance Public methods
close() Link
encoding() Link
The external encoding for standard input.
eof?() Link
Whether the end of this input method has been reached, returns true
if there is no more data to read.
See IO#eof?
for more information.