class FileTypeFileStats
Public Class Methods
new()
click to toggle source
# File lib/gitstats/stats/file/filetype.rb, line 4 def initialize @hash = Hash.new end
Public Instance Methods
update(file)
click to toggle source
# File lib/gitstats/stats/file/filetype.rb, line 8 def update(file) type = File.extname(file[:name]) @hash[type] ||= FileStats.new @hash[type].update(file) end