Class: HunkReviewChanges::Diff::Row

Inherits:
Struct
  • Object
show all
Defined in:
lib/hunk_review_changes/diff.rb

Overview

A single rendered diff line. :html is filled in lazily: word-diff for paired modifications, Rouge highlighting for everything else.

Instance Attribute Summary collapse

Instance Attribute Details

#htmlObject

Returns the value of attribute html

Returns:

  • (Object)

    the current value of html



38
39
40
# File 'lib/hunk_review_changes/diff.rb', line 38

def html
  @html
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



38
39
40
# File 'lib/hunk_review_changes/diff.rb', line 38

def kind
  @kind
end

#new_lnObject

Returns the value of attribute new_ln

Returns:

  • (Object)

    the current value of new_ln



38
39
40
# File 'lib/hunk_review_changes/diff.rb', line 38

def new_ln
  @new_ln
end

#old_lnObject

Returns the value of attribute old_ln

Returns:

  • (Object)

    the current value of old_ln



38
39
40
# File 'lib/hunk_review_changes/diff.rb', line 38

def old_ln
  @old_ln
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



38
39
40
# File 'lib/hunk_review_changes/diff.rb', line 38

def text
  @text
end