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.
This commit is contained in:
Yorick Peterse 2014-08-07 20:11:17 +02:00
parent 97e59fe449
commit 4e18989972
1 changed files with 1 additions and 3 deletions

View File

@ -5,17 +5,15 @@ module Oga
# name and URI. # name and URI.
# #
class Namespace class Namespace
attr_accessor :name, :uri attr_accessor :name
## ##
# @param [Hash] options # @param [Hash] options
# #
# @option options [String] :name # @option options [String] :name
# @option options [String] :uri
# #
def initialize(options = {}) def initialize(options = {})
@name = options[:name] @name = options[:name]
@uri = options[:uri]
end end
## ##