def matches_criteria?(element)
      @criteria.all? do |method|
        case method
        when Symbol
          send(method, element)
        when Proc
          method.call(element)
        end
      end
    end
def matches_criteria?(element)
      @criteria.all? do |method|
        case method
        when Symbol
          send(method, element)
        when Proc
          method.call(element)
        end
      end
    end
Answers whether or not +element+ matches the custom criteria set by {#with_criteria}.

 @param [Nokogiri::XML::Node]  element   The element to be tested.

 @return [Boolean]