Class: Evilution::Reporter::HTML::Sections::ErrorDetails

Inherits:
Evilution::Reporter::HTML::Section show all
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

Methods inherited from Evilution::Reporter::HTML::Section

template

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