Module: Differ::Format::HTML

Defined in:
lib/differ/format/html.rb

Class Method Summary collapse

Class Method Details

.format(change) ⇒ Object



5
6
7
8
9
10
# File 'lib/differ/format/html.rb', line 5

def format(change)
  (change.change? && as_change(change)) ||
  (change.delete? && as_delete(change)) ||
  (change.insert? && as_insert(change)) ||
  ''
end