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.



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

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.



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

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

  tdiff_recursive_unordered(tree,&block)
  return self
end