struct
Agate::Diff::Hunk
- Agate::Diff::Hunk
- Struct
- Value
- Object
Overview
A hunk within a patch -- a span of modified lines with context.
Defined in:
agate/patch.crConstructors
Instance Method Summary
- #clone
- #copy_with(header _header = @header, old_start _old_start = @old_start, old_lines _old_lines = @old_lines, new_start _new_start = @new_start, new_lines _new_lines = @new_lines, lines _lines = @lines)
- #header : String
- #lines : Array(Line)
- #new_lines : Int32
- #new_start : Int32
- #old_lines : Int32
- #old_start : Int32
Constructor Detail
def self.new(header : String, old_start : Int32, old_lines : Int32, new_start : Int32, new_lines : Int32, lines : Array(Line))
#
Instance Method Detail
def copy_with(header _header = @header, old_start _old_start = @old_start, old_lines _old_lines = @old_lines, new_start _new_start = @new_start, new_lines _new_lines = @new_lines, lines _lines = @lines)
#