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: offline_sort.rb
    path of file: ./repos/offline-sort/lib/offline_sort
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 
    
    def split
      sorted_chunks = []
      chunk_entries = []

      enumerable.each do |entry|
        chunk_entries << entry

        if chunk_entries.size == chunk_size
          sorted_chunks << write_sorted_chunk(chunk_entries)
          chunk_entries.clear
        end
      end