class FlogGauntlet
def report_bad_people section
def report_bad_people section title section bad_people = yield max_size = bad_people.map { |a| a.first.size }.max fmt = "%4d: %-#{max_size}s: %2d projects %8.1f tot %8.1f avg" bad_people.each_with_index do |(name, projects), i| avg = projects.values.average puts fmt % [i + 1, name, projects.size, $score_per_owner[name], avg] end end