lib/fukuzatsu/formatters/base.rb in fukuzatsu-0.9.12 vs lib/fukuzatsu/formatters/base.rb in fukuzatsu-0.9.13

- old
+ new

@@ -16,17 +16,25 @@ def columns ["class", "method", "complexity"] end + def root_path + "doc/fukuzatsu" + end + def output_path - output_path = "doc/fukuzatsu/#{self.file.path_to_file.split('/')[0..-2].join("/")}" + output_path = "#{root_path}/#{self.file.path_to_file.split('/')[0..-2].join("/")}" FileUtils.mkpath(output_path) output_path end def filename self.file.path_to_file.split('/')[-1] + file_extension + end + + def file_extension + "" end def export begin outfile = File.open("#{output_path}/#{filename}", 'w')