method
calculate_total
v2.1.0 -
Show latest stable
- Class:
CodeStatistics
calculate_total()private
No documentation available.
# File railties/lib/code_statistics.rb, line 53
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