Class: RevisionSan::Diff::SimpleHTMLFormatter::WordDiffHTMLFormatter

Inherits:
LineDiffHTMLFormatter show all
Defined in:
lib/revision_san/diff.rb

Instance Method Summary collapse

Methods inherited from LineDiffHTMLFormatter

#discard_b, #initialize, #match

Constructor Details

This class inherits a constructor from RevisionSan::Diff::SimpleHTMLFormatter::LineDiffHTMLFormatter

Instance Method Details

#discard_a(change) ⇒ Object



95
96
97
# File 'lib/revision_san/diff.rb', line 95

def discard_a(change)
  @output << "<del>#{change.old_element}</del>"
end

#outputObject



91
92
93
# File 'lib/revision_san/diff.rb', line 91

def output
  @output.join
end