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

Version Path
nokogiri-backport-1.11.0 lib/nokogiri/xml/xpath_context.rb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/nokogiri-1.12.5-x86_64-linux/lib/nokogiri/xml/xpath_context.rb
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/nokogiri-1.11.6-x86_64-linux/lib/nokogiri/xml/xpath_context.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/nokogiri-1.12.5-x86_64-linux/lib/nokogiri/xml/xpath_context.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/nokogiri-1.12.5-x86_64-linux/lib/nokogiri/xml/xpath_context.rb
nokogiri-1.12.5 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.12.5-x86_64-linux lib/nokogiri/xml/xpath_context.rb
nokogiri-1.12.5-x86_64-darwin lib/nokogiri/xml/xpath_context.rb
nokogiri-1.12.5-x86-mingw32 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.12.5-x86-linux lib/nokogiri/xml/xpath_context.rb
nokogiri-1.12.5-x64-mingw32 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.12.5-java lib/nokogiri/xml/xpath_context.rb
nokogiri-1.12.5-arm64-darwin lib/nokogiri/xml/xpath_context.rb
nokogiri-1.12.4 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.12.4-x86_64-linux lib/nokogiri/xml/xpath_context.rb
nokogiri-1.12.4-x86_64-darwin lib/nokogiri/xml/xpath_context.rb
nokogiri-1.12.4-x86-mingw32 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.12.4-x86-linux lib/nokogiri/xml/xpath_context.rb
nokogiri-1.12.4-x64-mingw32 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.12.4-java lib/nokogiri/xml/xpath_context.rb