Class: HTML::Proofer::XpathFunctions

Inherits:
Object
  • Object
show all
Defined in:
lib/html/proofer/xpathfunctions.rb

Instance Method Summary collapse

Instance Method Details

#case_insensitive_equals(node_set, str_to_match) ⇒ Object



4
5
6
# File 'lib/html/proofer/xpathfunctions.rb', line 4

def case_insensitive_equals(node_set, str_to_match)
  node_set.find_all { |node| node.to_s.downcase == str_to_match.to_s.downcase }
end