Class: RubynCode::Output::DiffRenderer::Hunk
- Inherits:
-
Data
- Object
- Data
- RubynCode::Output::DiffRenderer::Hunk
- Defined in:
- lib/rubyn_code/output/diff_renderer.rb
Overview
Immutable value object representing a single hunk in a unified diff.
Instance Attribute Summary collapse
-
#lines ⇒ Object
readonly
Returns the value of attribute lines.
-
#new_count ⇒ Object
readonly
Returns the value of attribute new_count.
-
#new_start ⇒ Object
readonly
Returns the value of attribute new_start.
-
#old_count ⇒ Object
readonly
Returns the value of attribute old_count.
-
#old_start ⇒ Object
readonly
Returns the value of attribute old_start.
Instance Attribute Details
#lines ⇒ Object (readonly)
Returns the value of attribute lines
9 10 11 |
# File 'lib/rubyn_code/output/diff_renderer.rb', line 9 def lines @lines end |
#new_count ⇒ Object (readonly)
Returns the value of attribute new_count
9 10 11 |
# File 'lib/rubyn_code/output/diff_renderer.rb', line 9 def new_count @new_count end |
#new_start ⇒ Object (readonly)
Returns the value of attribute new_start
9 10 11 |
# File 'lib/rubyn_code/output/diff_renderer.rb', line 9 def new_start @new_start end |
#old_count ⇒ Object (readonly)
Returns the value of attribute old_count
9 10 11 |
# File 'lib/rubyn_code/output/diff_renderer.rb', line 9 def old_count @old_count end |
#old_start ⇒ Object (readonly)
Returns the value of attribute old_start
9 10 11 |
# File 'lib/rubyn_code/output/diff_renderer.rb', line 9 def old_start @old_start end |