class Diff::Printer

Defined in:

diff/printer.cr

Constant Summary

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

Instance Method Summary

Constructor Detail

def self.new(output : IO = STDOUT, colorize : Bool = false) #

[View source]

Instance Method Detail

def print(diff) #

[View source]
def print_edit(edit) #

[View source]