lib/rubycritic/generators/html/code_index.rb in rubycritic-3.4.0 vs lib/rubycritic/generators/html/code_index.rb in rubycritic-3.5.0

- old
+ new

@@ -8,9 +8,16 @@ 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