Class: Ast::Merge::DiffMapperBase::DiffLine

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

Overview

Represents a single line in a diff hunk

Instance Attribute Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



35
36
37
# File 'lib/ast/merge/diff_mapper_base.rb', line 35

def content
  @content
end

#new_line_numObject

Returns the value of attribute new_line_num

Returns:

  • (Object)

    the current value of new_line_num



35
36
37
# File 'lib/ast/merge/diff_mapper_base.rb', line 35

def new_line_num
  @new_line_num
end

#old_line_numObject

Returns the value of attribute old_line_num

Returns:

  • (Object)

    the current value of old_line_num



35
36
37
# File 'lib/ast/merge/diff_mapper_base.rb', line 35

def old_line_num
  @old_line_num
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



35
36
37
# File 'lib/ast/merge/diff_mapper_base.rb', line 35

def type
  @type
end