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

Version Path
tenderlove-nokogiri-0.0.0-x86-mswin32-60 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.0.0 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.0.0-x86-mswin32-60 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.0.1 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.0.3-x86-mswin32-60 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.0.4 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.0.4-x86-mswin32-60 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.0.5-x86-mswin32-60 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.0.2 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.0.3 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.0.6 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.0.5 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.0.6-x86-mswin32-60 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.1.0-x86-mswin32-60 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.0.7-x86-mswin32-60 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.1.0 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.0.7 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.1.1-java lib/nokogiri/xml/xpath_context.rb
nokogiri-1.1.1-x86-mswin32-60 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.2.0-java lib/nokogiri/xml/xpath_context.rb