Class: Diff::Display::Unified
- Inherits:
-
Object
- Object
- Diff::Display::Unified
- Defined in:
- lib/diff/display/unified.rb
Defined Under Namespace
Classes: Generator
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(udiff) ⇒ Unified
constructor
A new instance of Unified.
- #render(renderer, out = "") ⇒ Object
Constructor Details
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
7 8 9 |
# File 'lib/diff/display/unified.rb', line 7 def data @data end |
Instance Method Details
#render(renderer, out = "") ⇒ Object
9 10 11 12 |
# File 'lib/diff/display/unified.rb', line 9 def render(renderer, out="") out << renderer.render(data) out end |