Class Grit::DiffStat
In: lib/grit/commit_stats.rb
Parent: Object

Methods

inspect   net   new  

Attributes

additions  [R] 
deletions  [R] 
filename  [R] 

Public Class methods

[Source]

     # File lib/grit/commit_stats.rb, line 115
115:     def initialize(filename, additions, deletions, total=nil)
116:       @filename, @additions, @deletions = filename, additions, deletions
117:     end

Public Instance methods

[Source]

     # File lib/grit/commit_stats.rb, line 123
123:     def inspect
124:       "#{filename}: +#{additions} -#{deletions}"
125:     end

[Source]

     # File lib/grit/commit_stats.rb, line 119
119:     def net
120:       additions - deletions
121:     end

[Validate]