Refactored Diff::Display classes
[gitorious:yousource.git] / vendor / diff-display / lib / diff / display / unified.rb
1 module Diff
2   module Display
3     class Unified
4       def initialize(udiff)
5         @data = Diff::Display::Unified::Generator.run(udiff)
6       end
7       attr_reader :data
8       
9       def render(renderer, out="")
10         out << renderer.render(data)
11         out
12       end
13     end
14   end
15 end