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

module Isolator
  module Adapters
    # Used as a "temp
    
      def build_details(obj, args, kwargs)
        return nil unless details_message

        case details_message.arity
        when 2, -2
          # Older users of details_message expected only two arguments. Add
          # kwargs hash as last argument, like in older Ruby.
          details_message.call(obj, args + [kwargs])
        when 3, -3
          # New signature separates args from kwargs
          details_message.call(obj, args, kwargs)
        when 1
          # Callback does not care about any args
          details_message.call(obj)
        else
          raise "Unexpected arity (#{details_message.arity}) for #{details_message.inspect}"
        end
      end