Open Sidebar
Close Sidebar
c0
main
Top Level Namespace
Array
C0
Builder
CSV
Diff
FileEdit
Section
Sub
Unit
DiffBuilder
Document
Error
Field
Group
JSON
Value
Pretty
FormatMode
Record
SectionBuilder
Serializable
Stream
Reader
Writer
Table
Token
Tokenizer
TokenType
UnassignedCodeError
UnexpectedEndError
Hash
NamedTuple
struct
C0::
Diff::
Sub
C0::Diff::Sub
Struct
Value
Object
Overview
A single substitution: old text → new text.
Defined in:
c0/diff.cr
Constructors
.new
(old : Bytes, new : Bytes)
Instance Method Summary
#clone
#copy_with
(old _old = @old, new _new = @new)
#new
: Bytes
#old
: Bytes
Constructor Detail
def self.
new
(old : Bytes, new : Bytes)
#
[
View source
]
Instance Method Detail
def
clone
#
[
View source
]
def
copy_with
(old _old = @old, new _new = @new)
#
[
View source
]
def
new
: Bytes
#
def
old
: Bytes
#