class FileStats
Attributes
count[R]
size[R]
Public Class Methods
new()
click to toggle source
# File lib/gitstats/stats/file.rb, line 5 def initialize @count = 0 @size = 0 end
Public Instance Methods
update(file)
click to toggle source
# File lib/gitstats/stats/file.rb, line 10 def update(file) @count += 1 @size += file[:size] end