Class: Evilution::Reporter::HTML::Sections::SurvivedDetails Private

Inherits:
Evilution::Reporter::HTML::Section show all
Defined in:
lib/evilution/reporter/html/sections/survived_details.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.

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(survived, suggestion:, baseline_keys:) ⇒ SurvivedDetails

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.

Returns a new instance of SurvivedDetails.



16
17
18
19
20
# File 'lib/evilution/reporter/html/sections/survived_details.rb', line 16

def initialize(survived, suggestion:, baseline_keys:)
  @survived = survived
  @suggestion = suggestion
  @baseline_keys = baseline_keys
end

Class Method Details

.render_if(survived, suggestion:, baseline_keys:) ⇒ 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/sections/survived_details.rb', line 10

def self.render_if(survived, suggestion:, baseline_keys:)
  return "" if survived.empty?

  new(survived, suggestion: suggestion, baseline_keys: baseline_keys).render
end