Sha256: bdfe8f85a3bffc2020257a1d5aa39c096e9c02fc2ca7ed7e8403b7e858c479e1

Contents?: true

Size: 678 Bytes

Versions: 6

Compression:

Stored size: 678 Bytes

Contents

require 'rubycritic/generators/html/base'
require 'rubycritic/generators/html/turbulence'

module Rubycritic
  module Generator
    module Html
      class Overview < Base
        TEMPLATE = erb_template('overview.html.erb')

        def initialize(analysed_modules)
          @turbulence_data = Turbulence.data(analysed_modules)
          @score = analysed_modules.score
          @max_score = AnalysedModulesCollection::MAX_SCORE
        end

        def file_name
          'overview.html'
        end

        def render
          index_body = TEMPLATE.result(get_binding)
          LAYOUT_TEMPLATE.result(get_binding { index_body })
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rubycritic-2.9.2 lib/rubycritic/generators/html/overview.rb
rubycritic-2.9.1 lib/rubycritic/generators/html/overview.rb
rubycritic-2.9.0 lib/rubycritic/generators/html/overview.rb
rubycritic-2.8.0 lib/rubycritic/generators/html/overview.rb
rubycritic-2.7.1 lib/rubycritic/generators/html/overview.rb
rubycritic-2.7.0 lib/rubycritic/generators/html/overview.rb