Class: LibXML::XML::NS

Inherits:
Namespace show all
Defined in:
lib/libxml/ns.rb

Overview

:nodoc:

Instance Method Summary collapse

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

Returns:

  • (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

Returns:

  • (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