Class: RubynCode::Output::DiffRenderer::Hunk

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#linesObject (readonly)

Returns the value of attribute lines

Returns:

  • (Object)

    the current value of lines



9
10
11
# File 'lib/rubyn_code/output/diff_renderer.rb', line 9

def lines
  @lines
end

#new_countObject (readonly)

Returns the value of attribute new_count

Returns:

  • (Object)

    the current value of new_count



9
10
11
# File 'lib/rubyn_code/output/diff_renderer.rb', line 9

def new_count
  @new_count
end

#new_startObject (readonly)

Returns the value of attribute new_start

Returns:

  • (Object)

    the current value of new_start



9
10
11
# File 'lib/rubyn_code/output/diff_renderer.rb', line 9

def new_start
  @new_start
end

#old_countObject (readonly)

Returns the value of attribute old_count

Returns:

  • (Object)

    the current value of old_count



9
10
11
# File 'lib/rubyn_code/output/diff_renderer.rb', line 9

def old_count
  @old_count
end

#old_startObject (readonly)

Returns the value of attribute old_start

Returns:

  • (Object)

    the current value of old_start



9
10
11
# File 'lib/rubyn_code/output/diff_renderer.rb', line 9

def old_start
  @old_start
end