class XMLScan::XPath::DOM::AbstractNodeAdapter
Attributes
Public Instance Methods
Source
# File lib/xml/dom2/xpath.rb, line 42 def each_following_siblings node = @node yield node while node = node.nextSibling end
Source
# File lib/xml/dom2/xpath.rb, line 47 def each_preceding_siblings node = @node yield node while node = node.previousSibling end
Source
# File lib/xml/dom2/xpath.rb, line 52 def index @node.parentNode.childNodes.to_a.index(@node) end
Source
# File lib/xml/dom2/xpath.rb, line 56 def lang node = @node lang = nil until a = node.attributes and lang = a.getNamedItem('xml:lang') node = node.parentNode end lang and lang.nodeValue end
Source
# File lib/xml/dom2/xpath.rb, line 23 def wrap(node, visitor) @node = node self end