class Nokogiri::XML::Document

Public Instance Methods

tdiff(tree,&block) click to toggle source

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

# 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) click to toggle source

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

# 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