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: document_gems.rb
    path of file: ./repos/solargraph/lib/solargraph/language_server/message/extended
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'open3'

modu
    
          def process
            cmd = "yard gems"
            cmd += " --rebuild" if params['rebuild']
            o, s = Open3.capture2(cmd)
            if s != 0
              host.show_message "An error occurred while building gem documentation.", LanguageServer::MessageTypes::ERROR
              set_result({
                status: 'err'
              })
            else
              set_result({
                status: 'ok'
              })
            end
          end