Class: Nokogiri::PseudoClasses::Matches

Inherits:
Object
  • Object
show all
Defined in:
lib/core_ext/nokogiri.rb

Instance Method Summary collapse

Instance Method Details

#matches(node_set, regexp) ⇒ Object



5
6
7
# File 'lib/core_ext/nokogiri.rb', line 5

def matches(node_set, regexp)
  node_set.find_all { _1.content.match?(/#{regexp}/) }
end