You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: gzip.rb
    path of file: ./repos/gitlabhq/gems/csv_builder/lib/csv_builder
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module CsvBuilder
  class Gzip < CsvBuilder::Builder
    # Writes the CSV file compressed and yields the written tempfile and rows writ
    
    def render
      Tempfile.create(['csv_builder_gzip', '.csv.gz']) do |tempfile|
        Zlib::GzipWriter.open(tempfile.path) do |gz|
          csv = CSV.new(gz)

          write_csv csv, until_condition: -> {} # truncation must be handled outside of the CsvBuilder

          csv.close
        end

        yield tempfile, @rows_written
      end
    end