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: pattern.rb
    path of file: ./repos/ferrocarril/mruby-gems/vendor/ruby/2.6.0/gems/mustermann-1.0.3/lib/mustermann
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
require 'mustermann/error'
require 'mustermann/simple_match'
require 
    
    def self.new(string, ignore_unknown_options: false, **options)
      if ignore_unknown_options
        options = options.select { |key, value| supported?(key, **options) if key != :ignore_unknown_options }
      else
        unsupported = options.keys.detect { |key| not supported?(key, **options) }
        raise ArgumentError, "unsupported option %p for %p" % [unsupported, self] if unsupported
      end