Sha256: 9b29572fc0061bd893c836f3259b47b01d051d6d08b286fc3c7771d76f294e1b
Contents?: true
Size: 349 Bytes
Versions: 163
Compression:
Stored size: 349 Bytes
Contents
# frozen_string_literal: true 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
163 entries across 156 versions & 6 rubygems