Class: Evilution::Reporter::HTML Private

Inherits:
Object
  • Object
show all
Defined in:
lib/evilution/reporter/html.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.

Defined Under Namespace

Modules: DiffFormatter, Escape, Sections, Stylesheet Classes: BaselineKeys, Report, Section

Instance Method Summary collapse

Constructor Details

#initialize(baseline: nil, integration: :rspec) ⇒ HTML

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



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

def initialize(baseline: nil, integration: :rspec)
  @suggestion = Evilution::Reporter::Suggestion.new(integration: integration)
  @baseline = baseline
  @baseline_keys = BaselineKeys.new(baseline)
end

Instance Method Details

#call(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.



21
22
23
24
25
26
27
28
# File 'lib/evilution/reporter/html.rb', line 21

def call(summary)
  Report.new(
    summary,
    baseline: @baseline,
    baseline_keys: @baseline_keys,
    suggestion: @suggestion
  ).render
end