Class: Evilution::Reporter::HTML::Sections::UnparseableDetails Private

Inherits:
Evilution::Reporter::HTML::Section show all
Defined in:
lib/evilution/reporter/html/sections/unparseable_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(unparseable) ⇒ UnparseableDetails

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 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

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.



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