struct Agate::Diff::Hunk

Overview

A hunk within a patch -- a span of modified lines with context.

Defined in:

agate/patch.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(header : String, old_start : Int32, old_lines : Int32, new_start : Int32, new_lines : Int32, lines : Array(Line)) #

[View source]

Instance Method Detail

def clone #

[View source]
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) #

[View source]
def header : String #

def lines : Array(Line) #

def new_lines : Int32 #

def new_start : Int32 #

def old_lines : Int32 #

def old_start : Int32 #