Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
Tui::DiffHunk
Inherits
Reference
/
Object
Represents a hunk (section) in a diff
Constructors
new
(header :
String
, old_start :
Int32
= 0, old_count :
Int32
= 0, new_start :
Int32
= 0, new_count :
Int32
= 0)
Source
Instance methods
additions
Statistics
Source
collapsed=
(collapsed :
Bool
)
Source
collapsed?
Source
deletions
Source
header
Source
header=
(header :
String
)
Source
lines
Source
lines=
(lines :
Array
(
DiffLine
))
Source
new_count
Source
new_count=
(new_count :
Int32
)
Source
new_start
Source
new_start=
(new_start :
Int32
)
Source
old_count
Source
old_count=
(old_count :
Int32
)
Source
old_start
Source
old_start=
(old_start :
Int32
)
Source