Class: Reek::Report::HTMLReport
Overview
Saves the report as a HTML file
Constant Summary
Constants inherited from Base
Base::NO_WARNINGS_COLOR, Base::WARNINGS_COLOR
Instance Method Summary collapse
Methods inherited from Base
#add_examiner, #initialize, #smells, #smells?
Constructor Details
This class inherits a constructor from Reek::Report::Base
Instance Method Details
#show ⇒ Object
132 133 134 135 136 137 138 139 |
# File 'lib/reek/report/report.rb', line 132 def show path = File.('../../../../assets/html_output.html.erb', __FILE__) File.open('reek.html', 'w+') do |file| file.puts ERB.new(File.read(path)).result(binding) end print("Html file saved\n") end |