Class: Ast::Merge::DiffMapperBase::DiffHunk
- Inherits:
-
Struct
- Object
- Struct
- Ast::Merge::DiffMapperBase::DiffHunk
- Defined in:
- lib/ast/merge/diff_mapper_base.rb
Overview
Represents a single hunk from a unified diff
Instance Attribute Summary collapse
-
#header ⇒ Object
Returns the value of attribute header.
-
#lines ⇒ Object
Returns the value of attribute lines.
-
#new_count ⇒ Object
Returns the value of attribute new_count.
-
#new_start ⇒ Object
Returns the value of attribute new_start.
-
#old_count ⇒ Object
Returns the value of attribute old_count.
-
#old_start ⇒ Object
Returns the value of attribute old_start.
Instance Attribute Details
#header ⇒ Object
Returns the value of attribute header
24 25 26 |
# File 'lib/ast/merge/diff_mapper_base.rb', line 24 def header @header end |
#lines ⇒ Object
Returns the value of attribute lines
24 25 26 |
# File 'lib/ast/merge/diff_mapper_base.rb', line 24 def lines @lines end |
#new_count ⇒ Object
Returns the value of attribute new_count
24 25 26 |
# File 'lib/ast/merge/diff_mapper_base.rb', line 24 def new_count @new_count end |
#new_start ⇒ Object
Returns the value of attribute new_start
24 25 26 |
# File 'lib/ast/merge/diff_mapper_base.rb', line 24 def new_start @new_start end |
#old_count ⇒ Object
Returns the value of attribute old_count
24 25 26 |
# File 'lib/ast/merge/diff_mapper_base.rb', line 24 def old_count @old_count end |
#old_start ⇒ Object
Returns the value of attribute old_start
24 25 26 |
# File 'lib/ast/merge/diff_mapper_base.rb', line 24 def old_start @old_start end |