method

readlines

ruby latest stable - Class: OpenSSL::Buffering
readlines(eol=$/)
public

Reads lines from the stream which are separated by eol.

See also #gets