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.
6 7 8 9 |
# File 'lib/libxml/ns.rb', line 6 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
11 12 13 14 |
# File 'lib/libxml/ns.rb', line 11 def href? warn('XML::NS#href? is deprecated. Use !XML::NS#href.nil? instead.') not self.href.nil? end |
#prefix? ⇒ Boolean
16 17 18 19 |
# File 'lib/libxml/ns.rb', line 16 def prefix? warn('XML::NS#prefix? is deprecated. Use !XML::NS#prefix?.nil? instead.') not self.previx.nil? end |