Top Level Namespace
Defined Under Namespace
Classes: Chunk, Deleted, Merge3, Sequence
Constant Summary collapse
- DEBUG =
Note: While this does not concentrate performance, it is quite reasonable,
meaning linear in file size and quadrtic in numer of edits. Performace may be tested with the speedy.rb file in test directory
false
Instance Method Summary collapse
Instance Method Details
#main ⇒ Object
744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 |
# File 'lib/merge3.rb', line 744 def main() ignore_whitespace = false args = ARGV.dup if args[0] == "-w" ignore_whitespace = true args.shift end start = File.new( args.shift ).read one = File.new( args.shift ).read two = File.new( args.shift ).read result = Merge3::three_way( start , one , two , ignore_whitespace ) puts result end |