Class: Xberg::DiffHunk

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDiffHunk

Returns a new instance of DiffHunk.

Parameters:

  • from_line: (Integer)
  • from_count: (Integer)
  • to_line: (Integer)
  • to_count: (Integer)
  • lines: (Array[DiffLine])


506
# File 'sig/types.rbs', line 506

def initialize: (from_line: Integer, from_count: Integer, to_line: Integer, to_count: Integer, lines: Array[DiffLine]) -> void

Instance Attribute Details

#from_countInteger (readonly)

Returns the value of attribute from_count.

Returns:

  • (Integer)


501
502
503
# File 'sig/types.rbs', line 501

def from_count
  @from_count
end

#from_lineInteger (readonly)

Returns the value of attribute from_line.

Returns:

  • (Integer)


500
501
502
# File 'sig/types.rbs', line 500

def from_line
  @from_line
end

#linesArray[DiffLine] (readonly)

Returns the value of attribute lines.

Returns:



504
505
506
# File 'sig/types.rbs', line 504

def lines
  @lines
end

#to_countInteger (readonly)

Returns the value of attribute to_count.

Returns:

  • (Integer)


503
504
505
# File 'sig/types.rbs', line 503

def to_count
  @to_count
end

#to_lineInteger (readonly)

Returns the value of attribute to_line.

Returns:

  • (Integer)


502
503
504
# File 'sig/types.rbs', line 502

def to_line
  @to_line
end