Sha256: 96cf7c234ff52556d59cd0d90d083c1d4c8780c21d925525357b1ab2591a3d27

Contents?: true

Size: 531 Bytes

Versions: 21

Compression:

Stored size: 531 Bytes

Contents

require_relative '../application'

class CaseManager

  private

  def build_hall_of_fame
    celebrities = {}

    @cases.each do |c|
      grade = c.grade # report.tail[:grade]
      if celebrities[grade]
        label = celebrities[grade] + '*'
      else
        label = '*'
      end
      celebrities[grade] = label unless c.skip
    end

    a = celebrities.sort_by { |key, _value| key }
    list = a.reverse

    app = Application.instance
    app.options[:case_number] = @cases.size
    app.hall_of_fame = list
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
teuton-2.3.6 lib/teuton/case_manager/hall_of_fame.rb
teuton-2.3.5 lib/teuton/case_manager/hall_of_fame.rb
teuton-2.3.4 lib/teuton/case_manager/hall_of_fame.rb
teuton-2.3.3 lib/teuton/case_manager/hall_of_fame.rb
teuton-2.3.2 lib/teuton/case_manager/hall_of_fame.rb
teuton-2.3.1 lib/teuton/case_manager/hall_of_fame.rb
teuton-2.2.2 lib/teuton/case_manager/hall_of_fame.rb
teuton-2.1.11 lib/teuton/case_manager/hall_of_fame.rb
teuton-2.1.10 lib/teuton/case_manager/hall_of_fame.rb
teuton-2.1.9 lib/teuton/case_manager/hall_of_fame.rb
teuton-2.1.8 lib/teuton/case_manager/hall_of_fame.rb
teuton-2.1.8dev1 lib/teuton/case_manager/hall_of_fame.rb
teuton-2.1.7 lib/teuton/case_manager/hall_of_fame.rb
teuton-2.1.6 lib/teuton/case_manager/hall_of_fame.rb
teuton-2.1.5dev lib/teuton/case_manager/hall_of_fame.rb
teuton-2.1.4 lib/teuton/case_manager/hall_of_fame.rb
teuton-2.1.3 lib/teuton/case_manager/hall_of_fame.rb
teuton-2.1.2 lib/teuton/case_manager/hall_of_fame.rb
teuton-2.1.1 lib/teuton/case_manager/hall_of_fame.rb
teuton-2.1.0 lib/teuton/case_manager/hall_of_fame.rb