Class: Evilution::Reporter::HTML::Section Private
- Inherits:
-
Object
- Object
- Evilution::Reporter::HTML::Section
- Defined in:
- lib/evilution/reporter/html/section.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
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::NeutralDetails, Evilution::Reporter::HTML::Sections::SummaryCards, Evilution::Reporter::HTML::Sections::SurvivedDetails, Evilution::Reporter::HTML::Sections::SurvivedEntry, Evilution::Reporter::HTML::Sections::TruncationNotice, Evilution::Reporter::HTML::Sections::UnparseableDetails, Evilution::Reporter::HTML::Sections::UnresolvedDetails
Constant Summary collapse
- TEMPLATE_DIR =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
File.("templates", __dir__)
Class Method Summary collapse
- .template(name) ⇒ Object private
Class Method Details
.template(name) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
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 |