Module: Differ::Format::Color

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

Class Method Summary collapse

Class Method Details

.format(change) ⇒ Object



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

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