Class: Evilution::Reporter::HTML::Section
- Inherits:
-
Object
- Object
- Evilution::Reporter::HTML::Section
- Defined in:
- lib/evilution/reporter/html/section.rb
Direct Known Subclasses
Report, Evilution::Reporter::HTML::Sections::BaselineComparison, Evilution::Reporter::HTML::Sections::ErrorDetails, Evilution::Reporter::HTML::Sections::ErrorEntry, Evilution::Reporter::HTML::Sections::FileSection, Evilution::Reporter::HTML::Sections::Header, Evilution::Reporter::HTML::Sections::MutationMap, Evilution::Reporter::HTML::Sections::SummaryCards, Evilution::Reporter::HTML::Sections::SurvivedDetails, Evilution::Reporter::HTML::Sections::SurvivedEntry, Evilution::Reporter::HTML::Sections::TruncationNotice
Constant Summary collapse
- TEMPLATE_DIR =
File.("templates", __dir__)
Class Method Summary collapse
Class Method Details
.template(name) ⇒ Object
10 11 12 13 14 |
# File 'lib/evilution/reporter/html/section.rb', line 10 def self.template(name) path = File.join(TEMPLATE_DIR, "#{name}.html.erb") erb = ERB.new(File.read(path), trim_mode: "-") erb.def_method(self, "render") end |