class Autoproj::Stats::PackageStats
Attributes
copyright[R]
sloc[R]
Public Class Methods
new(sloc = 0, authors = Hash.new, copyright = Hash.new)
click to toggle source
# File lib/autoproj/stats/package_stats.rb, line 7 def initialize(sloc = 0, authors = Hash.new, copyright = Hash.new) @sloc, @authors, @copyright = sloc, authors, copyright end
Public Instance Methods
+(other)
click to toggle source
# File lib/autoproj/stats/package_stats.rb, line 11 def +(other) PackageStats.new( sloc + other.sloc, authors.merge(other.authors) { |_, v1, v2| v1 + v2 }, copyright.merge(other.copyright) { |_, v1, v2| v1 + v2 }) end