method
each_crlf_line
v2_1_10 -
Show latest stable
- Class:
Net::InternetMessageIO
each_crlf_line(src)private
No documentation available.
# File lib/net/protocol.rb, line 327
def each_crlf_line(src)
buffer_filling(@wbuf, src) do
while line = @wbuf.slice!(/\A[^\r\n]*(?:\n|\r(?:\n|(?!\z)))/)
yield line.chomp("\n") + "\r\n"
end
end
end