module Diffing
Public Class Methods
by_chars( from, to )
click to toggle source
# File lib/diffing.rb, line 12 def by_chars( from, to ) Diff.new from, to end
by_lines( from, to )
click to toggle source
# File lib/diffing.rb, line 20 def by_lines( from, to ) Diff.new from, to, /[^\n]+|\n+/ end
by_words( from, to )
click to toggle source
# File lib/diffing.rb, line 16 def by_words( from, to ) Diff.new from, to, /\S+|\s+/ end