Sha256: 516d28e5604be0e6712f5552d4585d13c934b76d057db883d31a26093b1785a4

Contents?: true

Size: 545 Bytes

Versions: 3

Compression:

Stored size: 545 Bytes

Contents

require 'nokogiri/diff/xml/node'

class Nokogiri::XML::Document < Nokogiri::XML::Node

  #
  # Overrides `tdiff` to only compare the child nodes of the document.
  #
  def tdiff(tree,&block)
    return enum_for(:tdiff,tree) unless block

    tdiff_recursive(tree,&block)
    return self
  end

  #
  # Overrides `tdiff_unordered` to only compare the child nodes of the document.
  #
  def tdiff_unordered(tree,&block)
    return enum_for(:tdiff_unordered,tree) unless block

    tdiff_recursive_unordered(tree,&block)
    return self
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nokogiri-diff-0.1.2 lib/nokogiri/diff/xml/document.rb
nokogiri-diff-0.1.1 lib/nokogiri/diff/xml/document.rb
nokogiri-diff-0.1.0 lib/nokogiri/diff/xml/document.rb