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.



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

Returns:

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

Returns:

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