method

eof?

ruby latest stable - Class: IRB::FileInputMethod
eof?()
public

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.