class

Diff::Printer

Inherits Reference / Object

Constants

COLORS = {Edit::Type::Equal => Cor.color(:white), Edit::Type::Delete => Cor.color(:red), Edit::Type::Insert => Cor.color(:green)}
LINE_WIDTH = 4
TAGS = {Edit::Type::Equal => " ", Edit::Type::Delete => "-", Edit::Type::Insert => "+"}

Constructors

new(output : IO = STDOUT, colorize : Bool = false)
Source

Instance methods