class Net::BufferedIO

def readuntil(terminator, ignore_eof = false)

Experimental RBS support (using type sampling data from the type_fusion project).

def readuntil: (String terminator, ?true ignore_eof) -> String

This signature was generated using 3 samples from 1 application.

def readuntil(terminator, ignore_eof = false)
  offset = @rbuf_offset
  begin
    until idx = @rbuf.index(terminator, offset)
      offset = @rbuf.bytesize
      rbuf_fill
    end
    return rbuf_consume(idx + terminator.bytesize - @rbuf_offset)
  rescue EOFError
    raise unless ignore_eof
    return rbuf_consume
  end
end