vendor/jruby/1.9/gems/flog-4.2.1/lib/flog.rb
def calculate
    each_by_score threshold do |class_method, score, call_list|
      klass = class_method.scan(/.+(?=#|::)/).first

      method_scores[klass] << [class_method, score]
      scores[klass] += score
    end
  end
##
# Calculates classes and methods scores.
Calculates classes and methods scores.
Calculates classes and methods scores .
def calculate
    each_by_score threshold do |class_method, score, call_list|
      klass = class_method.scan(/.+(?=#|::)/).first
      method_scores[klass] << [class_method, score]
      scores[klass] += score
    end
  end
def calculate each_by_score threshold do | class_method , score , call_list | klass = class_method . scan ( / .+(?=#|::) / ) . first method_scores [ klass ] << [ class_method , score ] scores [ klass ] += score end end
Calculates classes and methods scores.
Calculates classes and methods scores .