class Net::SSH::Buffer

def eof?

reads will return nil, in this case.
Returns true if the pointer is at the end of the buffer. Subsequent
def eof?
  @position >= length
end