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: role_based_task_filter.rb
    path of file: ./repos/tomo/lib/tomo/configuration
    
    the code of the file until where you have to start completion: module Tomo
  class Configuration
    class RoleBasedTaskFilter
      def initialize
        @globs = {}
      end

      def freeze
        globs.freeze
        super
      end
    
      def match?(task, role)
        task_globs = globs.keys.select { |glob| glob.match?(task) } # rubocop:disable Style/SelectByRegexp
        return true if task_globs.empty?

        roles = globs.values_at(*task_globs).flatten
        roles.include?(role)
      end