Sha256: 26e922dbcdb57e735f5f425b750459bc942dd61b23aeb28288629f686e1669e8
Contents?: true
Size: 220 Bytes
Versions: 3
Compression:
Stored size: 220 Bytes
Contents
class FileTypeFileStats include StatsHash def initialize @hash = Hash.new end def update(file) type = File.extname(file[:name]) @hash[type] ||= FileStats.new @hash[type].update(file) end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
gitstats-rb-2.0.0 | lib/gitstats/stats/file/filetype.rb |
gitstats-ruby-1.0.1 | lib/gitstats/stats/file/filetype.rb |
gitstats-ruby-1.0.0 | lib/gitstats/stats/file/filetype.rb |