Class: RXSD::XML::LibXMLNamespace

Inherits:
Namespace
  • Object
show all
Defined in:
lib/rxsd/libxml_adapter.rb

Overview

Some additions to the libxml namespace interface

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ LibXMLNamespace

Returns a new instance of LibXMLNamespace.



17
18
19
# File 'lib/rxsd/libxml_adapter.rb', line 17

def initialize(args = {})
   @ns = args[:ns]
end

Instance Method Details

#hrefObject

Implementation of RXSD::XML::Namespace.href



27
28
29
# File 'lib/rxsd/libxml_adapter.rb', line 27

def href
   @ns.href
end

#prefixObject

Implementation of RXSD::XML::Namespace.prefix



22
23
24
# File 'lib/rxsd/libxml_adapter.rb', line 22

def prefix
   @ns.prefix
end

#to_sObject

Implementation of RXSD::XML::Namespace.to_s



32
33
34
# File 'lib/rxsd/libxml_adapter.rb', line 32

def to_s
   @ns.to_s
end