module Recode::Diffing
Public Instance Methods
diff(source, target)
click to toggle source
# File lib/recode/diffing.rb, line 3 def diff(source, target) diffy.new "#{source}\n", "#{target}\n", context: 1 end
Private Instance Methods
diffy()
click to toggle source
# File lib/recode/diffing.rb, line 9 def diffy @diffy ||= diffy! end
diffy!()
click to toggle source
# File lib/recode/diffing.rb, line 13 def diffy! Diffy::Diff.default_format = :color Diffy::Diff end