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: write_concern_supported.rb
    path of file: ./repos/mongo-ruby-driver/lib/mongo/operation/shared
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
# rubocop:todo all

# Copyright (C) 2015-2020 MongoDB Inc.
#
# Licensed under the Apache License, Version 2.0 (the 
    
      def write_concern_supported?(connection); true; end

      def command(connection)
        add_write_concern!(super, connection)
      end

      def add_write_concern!(sel, connection)
        if write_concern && write_concern_supported?(connection)
          sel[:writeConcern] = write_concern.options
        end
        sel
      end