Sha256: dc81b56c44897ea9f19db618a2b0053c745f96916d0ece8631d4f2094a3ef49e
Contents?: true
Size: 319 Bytes
Versions: 396
Compression:
Stored size: 319 Bytes
Contents
module Nokogiri module XML class XPathContext ### # Register namespaces in +namespaces+ def register_namespaces(namespaces) namespaces.each do |k, v| k = k.to_s.gsub(/.*:/,'') # strip off 'xmlns:' or 'xml:' register_ns(k, v) end end end end end
Version data entries
396 entries across 367 versions & 34 rubygems