Class: CoverRage::Reporters::HtmlReporter

Inherits:
Object
  • Object
show all
Defined in:
lib/cover_rage/reporters/html_reporter.rb

Instance Method Summary collapse

Instance Method Details

#report(records) ⇒ Object



9
10
11
12
# File 'lib/cover_rage/reporters/html_reporter.rb', line 9

def report(records)
  records = JSON.dump(records.map(&:to_h))
  ERB.new(File.read("#{__dir__}/html_reporter/index.html.erb")).result(binding)
end