Module: Dcc::Diff
- Defined in:
- lib/dcc/diff.rb,
lib/dcc/diff/change.rb,
lib/dcc/diff/result.rb
Overview
Dcc::Diff compares two parsed DCC object trees and returns a
Dcc::Diff::Result describing structural changes (counts, additions,
removals, modifications). Identity is determined by uniqueIdentifier
for the top-level DCC and by element @id / @refId for nested items.
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.call(a, b) ⇒ Dcc::Diff::Result
19 20 21 22 23 |
# File 'lib/dcc/diff.rb', line 19 def call(a, b) changes = [] collect_differences(a, b, "", changes) Result.new(changes: changes) end |