class RSpecHtmlMatchers::NokogiriRegexpHelper

@api @private for nokogiri regexp matching

Public Class Methods

new(regex) click to toggle source
# File lib/rspec-html-matchers/nokogiri_regexp_helper.rb, line 9
def initialize regex
  @regex = regex
end

Public Instance Methods

regexp(node_set) click to toggle source
# File lib/rspec-html-matchers/nokogiri_regexp_helper.rb, line 13
def regexp node_set
  node_set.find_all { |node| node.content =~ @regex }
end