Class: Reek::Report::HTMLReport

Inherits:
BaseReport show all
Defined in:
lib/reek/report/html_report.rb

Overview

Saves the report as a HTML file

Constant Summary

Constants inherited from BaseReport

BaseReport::NO_WARNINGS_COLOR, BaseReport::WARNINGS_COLOR

Instance Attribute Summary

Attributes inherited from BaseReport

#examiners, #heading_formatter, #progress_formatter, #sort_by_issue_count, #warning_formatter

Instance Method Summary collapse

Methods inherited from BaseReport

#add_examiner, #initialize, #smells, #smells?

Constructor Details

This class inherits a constructor from Reek::Report::BaseReport

Instance Method Details

#showObject



16
17
18
19
# File 'lib/reek/report/html_report.rb', line 16

def show
  template_path = Pathname.new("#{__dir__}/html_report/html_report.html.erb")
  puts ERB.new(template_path.read).result(binding)
end