lib/rubycritic/report_generators/view_helpers.rb in rubycritic-0.0.7 vs lib/rubycritic/report_generators/view_helpers.rb in rubycritic-0.0.8

- old
+ new

@@ -16,11 +16,20 @@ def smell_location_path(location) pathname = location.pathname File.join(root_directory, "#{pathname.sub_ext('.html')}#L#{location.line}") end - def index_path - File.join(root_directory, "index.html") + def code_index_path + File.join(root_directory, "code_index.html") + end + + def smells_index_path + File.join(root_directory, "smells_index.html") + end + + # Includers must override + def root_directory + raise NotImplementedError.new("The #{self.class} class must implement the #{__method__} method.") end end end