# File lib/rails/dom/testing/assertions/selector_assertions/substitution_context.rb, line 12 def match(matches, attribute, matcher) matches.find_all { |node| node[attribute] =~ Regexp.new(matcher) } end