gets(eol=$/, limit=nil)
Instance Public methods
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.