def matches?(rendered)
      @rendered = rendered
      matches = Nokogiri::HTML::Document.parse(@rendered.to_s).css(@name).select do |element|
        matches_attributes?(element) && matches_content?(element) && matches_criteria?(element)
      end
      matches_count?(matches)
    end
def matches?(rendered)
      @rendered = rendered
      matches = Nokogiri::HTML::Document.parse(@rendered.to_s).css(@name).select do |element|
        matches_attributes?(element) && matches_content?(element) && matches_criteria?(element)
      end
      matches_count?(matches)
    end
Answers whether or not the matcher matches any elements within +rendered+.

 @param [String] rendered    A string of HTML or an Object whose +to_s+ method returns HTML.
                             (That includes Nokogiri classes.)

 @return [Boolean]