class CodeStatistics
def calculate_total
def calculate_total total = { "lines" => 0, "codelines" => 0, "classes" => 0, "methods" => 0 } @statistics.each_value { |pair| pair.each { |k, v| total[k] += v } } total end
def calculate_total total = { "lines" => 0, "codelines" => 0, "classes" => 0, "methods" => 0 } @statistics.each_value { |pair| pair.each { |k, v| total[k] += v } } total end