Sha256: 2f5e28dd703156016446697ac015a8c530bb88fffbf5e6cd3312bdff17dbd702
Contents?: true
Size: 534 Bytes
Versions: 1
Compression:
Stored size: 534 Bytes
Contents
= ANSI::Diff require 'ansi/diff' a = 'abcYefg' b = 'abcXefg' diff = ANSI::Diff.new(a,b) puts diff.to_s Try another. a = 'abc' b = 'abcdef' diff = ANSI::Diff.new(a,b) puts diff.to_s And another. a = 'abcXXXghi' b = 'abcdefghi' diff = ANSI::Diff.new(a,b) puts diff.to_s And another. a = 'abcXXXdefghi' b = 'abcdefghi' diff = ANSI::Diff.new(a,b) puts diff.to_s Comparison that is mostly different. a = 'abcpppz123' b = 'abcxyzzz43' diff = ANSI::Diff.new(a,b) puts diff.to_s
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ansi-1.2.5 | qed/09_diff.rb |