getmultiline()
private
Receive a section of lines until the response code’s match.
Show source
def getmultiline
line = getline
buff = line
if line[3] == --
code = line[0, 3]
begin
line = getline
buff << "\n" << line
end until line[0, 3] == code and line[3] != --
end
return buff << "\n"
end