method

gets

v1_9_3_125 - Show latest stable - Class: OpenSSL::Buffering
gets(eol=$/, limit=nil)
public

Reads the next “line+ from the stream. Lines are separated by eol. If limit is provided the result will not be longer than the given number of bytes.

eol may be a String or Regexp.

Unlike IO#gets the line read will not be assigned to +$_+.

Unlike IO#gets the separator must be provided if a limit is provided.