Refactored Diff::Display classes
[gitorious:yousource.git] / vendor / diff-display / lib / diff / renderer / diff.rb
1 module Diff
2   module Renderer
3     class Diff < Base      
4       def headerline(line)
5         line
6       end
7       
8       def unmodline(line)
9         " #{line}"
10       end
11       
12       def remline(line)
13         "-#{line}"
14       end
15       
16       def addline(line)
17         "+#{line}"
18       end
19       
20       def new_line
21         "\n"
22       end
23     end
24   end
25 end