Module: Lorax::DeltaSetGenerator

Defined in:
lib/lorax/delta_set_generator.rb

Class Method Summary collapse

Class Method Details

.generate_delta_set(match_set) ⇒ Object


3
4
5
6
7
8
# File 'lib/lorax/delta_set_generator.rb', line 3

def self.generate_delta_set match_set
  delta_set = DeltaSet.new
  generate_inserts_and_moves_recursively delta_set, match_set, match_set.signature2.root
  generate_deletes_recursively delta_set, match_set, match_set.signature1.root
  delta_set
end