Sha256: 85e01e41462e28f0f5c3bd618364333bc0da0a1f6d3a4f39627258c232bb3cf5
Contents?: true
Size: 260 Bytes
Versions: 32
Compression:
Stored size: 260 Bytes
Contents
module Nokogiri module XML class XPathContext def register_namespaces(namespaces) namespaces.each do |k, v| k = k.gsub(/.*:/,'') # strip off 'xmlns:' or 'xml:' register_ns(k, v) end end end end end
Version data entries
32 entries across 32 versions & 2 rubygems