gets (Net::SFTP::Operations::File)

    # File lib/net/sftp/operations/file.rb, line 86
        def gets(sep_string=$/)
          delim = if sep_string.length == 0
            "#{$/}#{$/}"
          else
            sep_string
          end

          loop do
            at = @buffer.index(delim)
            if at
              offset = at + delim.length
              @pos += offset
              line, @buffer = @buffer[0,offset], @buffer[offset..-1]
              return line
            elsif !fill
              return nil if @buffer.empty?
              @pos += @buffer.length
              line, @buffer = @buffer, ""
              return line
            end
          end
        end