Class: Evilution::Reporter::HTML::Sections::ErrorDetails
- Inherits:
-
Evilution::Reporter::HTML::Section
- Object
- Evilution::Reporter::HTML::Section
- Evilution::Reporter::HTML::Sections::ErrorDetails
- Defined in:
- lib/evilution/reporter/html/sections/error_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(errored) ⇒ ErrorDetails
constructor
A new instance of ErrorDetails.
Methods inherited from Evilution::Reporter::HTML::Section
Constructor Details
#initialize(errored) ⇒ ErrorDetails
Returns a new instance of ErrorDetails.
15 16 17 |
# File 'lib/evilution/reporter/html/sections/error_details.rb', line 15 def initialize(errored) @errored = errored end |
Class Method Details
.render_if(errored) ⇒ Object
9 10 11 12 13 |
# File 'lib/evilution/reporter/html/sections/error_details.rb', line 9 def self.render_if(errored) return "" if errored.empty? new(errored).render end |