Class: Evilution::Reporter::HTML::Sections::TruncationNotice Private

Inherits:
Evilution::Reporter::HTML::Section show all
Defined in:
lib/evilution/reporter/html/sections/truncation_notice.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(summary) ⇒ TruncationNotice

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



8
9
10
# File 'lib/evilution/reporter/html/sections/truncation_notice.rb', line 8

def initialize(summary)
  @summary = summary
end

Class Method Details

.render_if(summary) ⇒ 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.



12
13
14
15
16
# File 'lib/evilution/reporter/html/sections/truncation_notice.rb', line 12

def self.render_if(summary)
  return "" unless summary.truncated?

  new(summary).render
end