module OpenGraphReader::Parser::XPathHelpers

Some helper methods for Nokogiri

Public Class Methods

ci_starts_with(node_set, string) click to toggle source

Helper to lowercase all given properties

# File lib/open_graph_reader/parser.rb, line 13
def self.ci_starts_with node_set, string
  node_set.select {|node|
    node.to_s.downcase.start_with? string.downcase
  }
end