Sha256: 9490bc80ba078e641bd3f7ece0a057cb40a6dbb0b39b358a68a0388abf19a555

Contents?: true

Size: 565 Bytes

Versions: 1

Compression:

Stored size: 565 Bytes

Contents

# frozen_string_literal: true

require_relative '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.3.0 lib/nokogiri/diff/xml/document.rb