Class: LibXML::XML::NS
Overview
:nodoc:
Instance Method Summary collapse
- #href? ⇒ Boolean
-
#initialize(node, prefix, href) ⇒ NS
constructor
A new instance of NS.
- #prefix? ⇒ Boolean
Methods inherited from Namespace
#<=>, #each, #href, #next, #node_type, #prefix, #to_s
Constructor Details
#initialize(node, prefix, href) ⇒ NS
Returns a new instance of NS.
4 5 6 7 |
# File 'lib/libxml/ns.rb', line 4 def initialize(node, prefix, href) warn('The XML::NS class is deprecated. Use XML::Namespace instead.') super(node, href, prefix) end |
Instance Method Details
#href? ⇒ Boolean
9 10 11 12 |
# File 'lib/libxml/ns.rb', line 9 def href? warn('XML::NS#href? is deprecated. Use !XML::NS#href.nil? instead.') not self.href.nil? end |
#prefix? ⇒ Boolean
14 15 16 17 |
# File 'lib/libxml/ns.rb', line 14 def prefix? warn('XML::NS#prefix? is deprecated. Use !XML::NS#prefix?.nil? instead.') not self.previx.nil? end |