module Diffing::Formats::Html

Public Class Methods

change( from, to ) click to toggle source
# File lib/diffing/formats/html.rb, line 22
def change( from, to )
  remove( from ) + insert( to )
end
insert( value ) click to toggle source
# File lib/diffing/formats/html.rb, line 14
def insert( value )
  "<ins>#{ value }</ins>"
end
remove( value ) click to toggle source
# File lib/diffing/formats/html.rb, line 18
def remove( value )
  "<del>#{ value }</del>"
end
source( value ) click to toggle source
# File lib/diffing/formats/html.rb, line 10
def source( value )
  value
end