lib/rubycritic/report_generators/view_helpers.rb in rubycritic-0.0.9 vs lib/rubycritic/report_generators/view_helpers.rb in rubycritic-0.0.10

- old
+ new

@@ -24,12 +24,15 @@ 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.") + ::Rubycritic.configuration.root + end + + def analysed_file_name(pathname) + pathname.basename.sub_ext("") end end end