Sha256: 5aaec6667701e54458b68106c941c4a034bcaf5063ddc4a4cd5af9a5b1a3e288
Contents?: true
Size: 392 Bytes
Versions: 5
Compression:
Stored size: 392 Bytes
Contents
module GitDiff class Stats attr_reader :number_of_additions, :number_of_lines, :number_of_deletions module ClassMethods def total(collector) StatsCalculator.new(collector).total end end extend ClassMethods def initialize(attributes) attributes.each do |name, value| instance_variable_set("@#{name}", value) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
git_diff-0.4.2 | lib/git_diff/stats.rb |
git_diff-0.4.1 | lib/git_diff/stats.rb |
git_diff-0.4.0 | lib/git_diff/stats.rb |
git_diff-0.3.1 | lib/git_diff/stats.rb |
git_diff-0.3.0 | lib/git_diff/stats.rb |