Class: RXSD::XML::LibXMLNamespace
- Defined in:
- lib/rxsd/libxml_adapter.rb
Overview
Some additions to the libxml namespace interface
Instance Method Summary collapse
-
#href ⇒ Object
Implementation of RXSD::XML::Namespace.href.
-
#initialize(args = {}) ⇒ LibXMLNamespace
constructor
A new instance of LibXMLNamespace.
-
#prefix ⇒ Object
Implementation of RXSD::XML::Namespace.prefix.
-
#to_s ⇒ Object
Implementation of RXSD::XML::Namespace.to_s.
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
#href ⇒ Object
Implementation of RXSD::XML::Namespace.href
27 28 29 |
# File 'lib/rxsd/libxml_adapter.rb', line 27 def href @ns.href end |
#prefix ⇒ Object
Implementation of RXSD::XML::Namespace.prefix
22 23 24 |
# File 'lib/rxsd/libxml_adapter.rb', line 22 def prefix @ns.prefix end |
#to_s ⇒ Object
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 |