From 4e18989972d5df6be98ad8f180225d58692d9994 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Thu, 7 Aug 2014 20:11:17 +0200 Subject: [PATCH] Remove the uri attribute from Namespace. Oga won't be handling URIs any time soon. The rationale is that they server zero purpose when it comes to just parsing XML. Another goal of Oga is to make it easy to modify and reserialize documents back to XML. If namespaces would also store the URIs this would make this process more difficult. --- lib/oga/xml/namespace.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/oga/xml/namespace.rb b/lib/oga/xml/namespace.rb index 0309c72..499802c 100644 --- a/lib/oga/xml/namespace.rb +++ b/lib/oga/xml/namespace.rb @@ -5,17 +5,15 @@ module Oga # name and URI. # class Namespace - attr_accessor :name, :uri + attr_accessor :name ## # @param [Hash] options # # @option options [String] :name - # @option options [String] :uri # def initialize(options = {}) @name = options[:name] - @uri = options[:uri] end ##