Similar::TextDiffConfig
Configuration for text diffs.
Instance methods
Changes the algorithm.
The default algorithm is Algorithm::Myers.
Creates a diff of graphemes.
This splits the text into grapheme clusters.
Creates a diff of lines.
This splits the text old and new into lines preserving newlines
in the input.
Creates a diff of lines for bytes.
Creates a diff of arbitrary slices.
Creates a diff of unicode words.
This splits the text into words according to unicode rules.
Creates a diff of words.
This splits the text into words and whitespace.
Creates a diff of words for bytes.
Changes the newline termination flag.
The default is automatic based on input. This flag controls the
behavior of TextDiff#iter_changes and unified diff generation
with regards to newlines. When the flag is set to false (which
is the default) then newlines are added. Otherwise the newlines
from the source sequences are reused.