# File lib/kwala/lib/code_analyzer.rb, line 436 def extra_summary(methods) ttl_files = @fa_files.size methods.each do |mcall, mname| cnt = @fa_files.inject(0) { |cnt, f| cnt += (f.send(mcall).size > 0 ? 1 : 0) } if cnt == 0 next end msg = "#{ cnt } out of #{ ttl_files }" + " (#{sprintf("%.2f",(cnt.to_f / ttl_files) * 100)} %) use #{ mname}" uniqs = Hash.new { |h,k| h[k] = [] } @fa_files.each do |f| f.send(mcall).uniq.each do |sm| uniqs[sm] << f.file end end print_extra_summary(mname, msg, uniqs) end end