Sha256: c8c40eafffdae66bcb7ec2546e0b4bb306b3ae440e642367e354f23bc4f9931e
Contents?: true
Size: 896 Bytes
Versions: 25
Compression:
Stored size: 896 Bytes
Contents
# frozen_string_literal: true require 'rubycritic/generators/html/base' module RubyCritic module Generator module Html class CodeIndex < Base TEMPLATE = erb_template('code_index.html.erb') def initialize(analysed_modules) @analysed_modules = analysed_modules set_header_links if Config.compare_branches_mode? end def set_header_links @base_path = code_index_path(Config.base_root_directory, file_name) @feature_path = code_index_path(Config.feature_root_directory, file_name) @build_path = code_index_path(Config.compare_root_directory, file_name) end def file_name 'code_index.html' end def render index_body = TEMPLATE.result(base_binding) LAYOUT_TEMPLATE.result(base_binding { index_body }) end end end end end
Version data entries
25 entries across 25 versions & 2 rubygems