Class: Grit::Diff
- Inherits:
-
Object
- Object
- Grit::Diff
- Defined in:
- lib/grit_ext/diff.rb
Instance Method Summary collapse
Instance Method Details
#diff ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/grit_ext/diff.rb', line 12 def diff if @diff.nil? @diff = "" else lines = @diff.lines.to_a path = GritExt.encode! lines.shift(2).join body = GritExt.encode! lines.join @diff = path + body end end |