Class: Nokogiri::XML::Document

Inherits:
Node
  • Object
show all
Defined in:
lib/nokogiri/diff/xml/document.rb

Instance Method Summary collapse

Instance Method Details

#tdiff(tree, &block) ⇒ Object

Overrides tdiff to only compare the child nodes of the document.



10
11
12
13
14
15
# File 'lib/nokogiri/diff/xml/document.rb', line 10

def tdiff(tree,&block)
  return enum_for(__method__,tree) unless block

  tdiff_recursive(tree,&block)
  return self
end

#tdiff_unordered(tree, &block) ⇒ Object

Overrides tdiff_unordered to only compare the child nodes of the document.



20
21
22
23
24
25
# File 'lib/nokogiri/diff/xml/document.rb', line 20

def tdiff_unordered(tree,&block)
  return enum_for(__method__,tree) unless block

  tdiff_recursive_unordered(tree,&block)
  return self
end