Module: PrettyDiff

Defined in:
lib/pretty_diff/diff.rb,
lib/pretty_diff.rb,
lib/pretty_diff/line.rb,
lib/pretty_diff/chunk.rb,
lib/pretty_diff/encoding.rb,
lib/pretty_diff/line_numbers.rb,
lib/pretty_diff/basic_generator.rb,
lib/pretty_diff/word_diff_finder.rb,
lib/pretty_diff/abstract_generator.rb

Overview

Main class to interact with. In fact this is the only class you should interact with when using the library.

Usage example

pretty = PrettyDiff::Diff.new(udiff)
pretty.to_html

Keep in mind that Diff will automatically escape all HTML tags from the intput string so that it doesn't interfere with the output.

Defined Under Namespace

Modules: Encoding, WordDiffFinder Classes: AbstractGenerator, BasicGenerator, Chunk, Diff, InvalidGeneratorError, Line, LineNumbers