Sha256: 84da363df85ba4858e9b5fbd4db552aaa80d8fc38b8a8d18662acdc30fde34d8
Contents?: true
Size: 349 Bytes
Versions: 370
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
370 entries across 368 versions & 10 rubygems