class IO::Stream::Generic
def eof?
See {readable?} for a non-blocking alternative.
Determins if the stream has consumed all available data. May block if the stream is not readable.
def eof? if !@read_buffer.empty? return false elsif @eof return true else return !self.fill_read_buffer end end