Sha256: ee91e6634eca3aacbc35161ca08724bacbea93a9a7e01f48342f0327a4442f2d

Contents?: true

Size: 543 Bytes

Versions: 1

Compression:

Stored size: 543 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(__method__,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(__method__,tree) unless block

    tdiff_recursive_unordered(tree,&block)
    return self
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nokogiri-diff-0.2.0 lib/nokogiri/diff/xml/document.rb