module DocDiff::ClassicDiff
Public Instance Methods
add()
click to toggle source
# File lib/viewdiff.rb, line 77 def add "(?:^> ?#{noeol}*?#{eol})" end
change()
click to toggle source
# File lib/viewdiff.rb, line 80 def change "(?:#{del}+#{sep}#{add}+)" end
del()
click to toggle source
# File lib/viewdiff.rb, line 71 def del "(?:^< ?#{noeol}*?#{eol})" end
elements()
click to toggle source
# File lib/viewdiff.rb, line 89 def elements "(?:#{hunk}|#{misc})" end
eol()
click to toggle source
# File lib/viewdiff.rb, line 62 def eol "(?:\r\n|\n|\r)" end
hunk()
click to toggle source
# File lib/viewdiff.rb, line 86 def hunk "(?:#{hunk_header}(?:#{change}|#{del}+|#{add}+))" end
hunk_header()
click to toggle source
# File lib/viewdiff.rb, line 68 def hunk_header "(?:[0-9]+(?:,[0-9]+)?[dac][0-9]+(?:,[0-9]+)?#{eol})" end
misc()
click to toggle source
# File lib/viewdiff.rb, line 83 def misc "(?:.*?(?:#{eol}|\z))" end
noeol()
click to toggle source
# File lib/viewdiff.rb, line 65 def noeol "(?:[^\r\n])" end
sep()
click to toggle source
# File lib/viewdiff.rb, line 74 def sep "(?:^---#{eol})" end