class IRB::FileInputMethod

def eof?

See IO#eof? for more information.

there is no more data to read.
Whether the end of this input method has been reached, returns +true+ if
def eof?
  @io.closed? || @io.eof?
end