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: comparable_metadata.rb
    path of file: ./repos/geo_pattern/lib/geo_pattern/roles
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module GeoPattern
  # Roles
  module Roles
    # A comparable metadata
    module ComparableMetadata
      def self.included(base)
        base.extend ClassMethods
      end

      def generator?(value)
      
    
        def def_comparators(*methods)
          methods.flatten.each do |m|
            define_method "#{m}?".to_sym do |value|
              return true if value.nil? && public_send(m)
              return true if value == public_send(m)

              false
            end
          end
        end