Class: Evilution::Reporter::HTML::Sections::UnparseableDetails
- Inherits:
-
Evilution::Reporter::HTML::Section
- Object
- Evilution::Reporter::HTML::Section
- Evilution::Reporter::HTML::Sections::UnparseableDetails
- Defined in:
- lib/evilution/reporter/html/sections/unparseable_details.rb
Constant Summary
Constants inherited from Evilution::Reporter::HTML::Section
Evilution::Reporter::HTML::Section::TEMPLATE_DIR
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(unparseable) ⇒ UnparseableDetails
constructor
A new instance of UnparseableDetails.
Methods inherited from Evilution::Reporter::HTML::Section
Constructor Details
#initialize(unparseable) ⇒ UnparseableDetails
Returns a new instance of UnparseableDetails.
14 15 16 |
# File 'lib/evilution/reporter/html/sections/unparseable_details.rb', line 14 def initialize(unparseable) @unparseable = unparseable end |
Class Method Details
.render_if(unparseable) ⇒ Object
8 9 10 11 12 |
# File 'lib/evilution/reporter/html/sections/unparseable_details.rb', line 8 def self.render_if(unparseable) return "" if unparseable.empty? new(unparseable).render end |