Sha256: e405ab4736dd0f88c382b45916e7125efdbb3b1fe262a7fa49265dc559f72b9b
Contents?: true
Size: 792 Bytes
Versions: 5
Compression:
Stored size: 792 Bytes
Contents
# frozen_string_literal: true require 'rubycritic/generators/html/base' require 'rubycritic/generators/html/turbulence' require 'rubycritic/analysis_summary' 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 @summary = analysed_modules.summary 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
5 entries across 5 versions & 1 rubygems