vendor/jruby/1.9/gems/flog-4.2.1/lib/flog.rb
##
# Calculates the total score and populates @totals.
Calculates the total score and populates @totals.
Calculates the total score and populates @totals .
def calculate_total_scores
    return if @totals
    @total_score = 0
    @totals = Hash.new(0)
    calls.each do |meth, tally|
      score = score_method(tally)
      @totals[meth] = score
      @total_score += score
    end
  end
def calculate_total_scores return if @totals @total_score = 0 @totals = Hash . new ( 0 ) calls . each do | meth , tally | score = score_method ( tally ) @totals [ meth ] = score @total_score += score end end
Calculates the total score and populates @totals.
Calculates the total score and populates @totals .