Sha256: efd8674a11bc6ee853ada233139a194a17f0bc53d86870bd58f0f222e0551050
Contents?: true
Size: 894 Bytes
Versions: 3
Compression:
Stored size: 894 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(get_binding) LAYOUT_TEMPLATE.result(get_binding { index_body }) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubycritic-3.5.2 | lib/rubycritic/generators/html/code_index.rb |
rubycritic-3.5.1 | lib/rubycritic/generators/html/code_index.rb |
rubycritic-3.5.0 | lib/rubycritic/generators/html/code_index.rb |