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: tools.rb
    path of file: ./repos/brew/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/ruby-macho-2.1.0/lib/macho
    
    the code of the file until where you have to start completion: module MachO
  # A collection of convenient methods for common operations on Mach-O and Fat
  # binaries.
  module Tools
    # @param filename [S
    
    def self.merge_machos(filename, *files, fat64: false)
      machos = files.map do |file|
        macho = MachO.open(file)
        case macho
        when MachO::MachOFile
          macho
        else
          macho.machos
        end
      end.flatten

      fat_macho = MachO::FatFile.new_from_machos(*machos, :fat64 => fat64)
      fat_macho.write(filename)
    end