class C0::DiffBuilder

Overview

Builder for C0DIFF documents.

Defined in:

c0/diff.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def file(path : String, &) : Nil #

Add a file edit.


[View source]
def replace(context_before : String, old_text : String, new_text : String, context_after : String = "") : Nil #

Convenience: add a simple find/replace section.


[View source]
def section(& : SectionBuilder -> ) : Nil #

Add a section (pattern) within the current file.


[View source]
def to_slice : Bytes #

[View source]