class
C0::DiffBuilder
- C0::DiffBuilder
- Reference
- Object
Overview
Builder for C0DIFF documents.
Defined in:
c0/diff.crConstructors
Instance Method Summary
-
#file(path : String, &) : Nil
Add a file edit.
-
#replace(context_before : String, old_text : String, new_text : String, context_after : String = "") : Nil
Convenience: add a simple find/replace section.
-
#section(& : SectionBuilder -> ) : Nil
Add a section (pattern) within the current file.
- #to_slice : Bytes
Constructor Detail
Instance Method Detail
def replace(context_before : String, old_text : String, new_text : String, context_after : String = "") : Nil
#
Convenience: add a simple find/replace section.