def exclude?(path)
      exclude.include?(path) ||
        exclude.include?(path.split(METHOD_SEPARATOR).first)
    end
def exclude?(path)
      exclude.include?(path) ||
        exclude.include?(path.split(METHOD_SEPARATOR).first)
    end
Checks if given path is in exclude list

 If exact match fails then checks if the method class is in the exclude
 list.

 @param [String] path
   document path

 @return [Boolean]
   true if path is in the exclude list

 @api private