Class: Ast::Merge::DiffMapperBase::DiffMapping

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

Overview

Represents a mapping from diff changes to AST paths

Instance Attribute Summary collapse

Instance Attribute Details

#hunkObject

Returns the value of attribute hunk

Returns:

  • (Object)

    the current value of hunk



44
45
46
# File 'lib/ast/merge/diff_mapper_base.rb', line 44

def hunk
  @hunk
end

#linesObject

Returns the value of attribute lines

Returns:

  • (Object)

    the current value of lines



44
45
46
# File 'lib/ast/merge/diff_mapper_base.rb', line 44

def lines
  @lines
end

#operationObject

Returns the value of attribute operation

Returns:

  • (Object)

    the current value of operation



44
45
46
# File 'lib/ast/merge/diff_mapper_base.rb', line 44

def operation
  @operation
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



44
45
46
# File 'lib/ast/merge/diff_mapper_base.rb', line 44

def path
  @path
end