Class: Ast::Merge::DiffMapperBase::DiffHunk

Inherits:
Struct
  • Object
show all
Defined in:
lib/ast/merge/diff_mapper_base.rb

Overview

Represents a single hunk from a unified diff

Instance Attribute Summary collapse

Instance Attribute Details

#headerObject

Returns the value of attribute header

Returns:

  • (Object)

    the current value of header



24
25
26
# File 'lib/ast/merge/diff_mapper_base.rb', line 24

def header
  @header
end

#linesObject

Returns the value of attribute lines

Returns:

  • (Object)

    the current value of lines



24
25
26
# File 'lib/ast/merge/diff_mapper_base.rb', line 24

def lines
  @lines
end

#new_countObject

Returns the value of attribute new_count

Returns:

  • (Object)

    the current value of new_count



24
25
26
# File 'lib/ast/merge/diff_mapper_base.rb', line 24

def new_count
  @new_count
end

#new_startObject

Returns the value of attribute new_start

Returns:

  • (Object)

    the current value of new_start



24
25
26
# File 'lib/ast/merge/diff_mapper_base.rb', line 24

def new_start
  @new_start
end

#old_countObject

Returns the value of attribute old_count

Returns:

  • (Object)

    the current value of old_count



24
25
26
# File 'lib/ast/merge/diff_mapper_base.rb', line 24

def old_count
  @old_count
end

#old_startObject

Returns the value of attribute old_start

Returns:

  • (Object)

    the current value of old_start



24
25
26
# File 'lib/ast/merge/diff_mapper_base.rb', line 24

def old_start
  @old_start
end