Class: Fontisan::Formatters::LibrarySummaryTextRenderer

Inherits:
Object
  • Object
show all
Defined in:
lib/fontisan/formatters/library_summary_text_renderer.rb

Overview

Human-readable overview of a Models::Audit::LibrarySummary.

Lists the per-face rollup counts, aggregate metrics, script coverage matrix, duplicate groups, and license distribution. The full per-face AuditReports are attached to the model; this view only shows the cross-face summaries (use YAML/JSON output for the full per-face data).

Constant Summary collapse

SEPARATOR =
"=" * 80
LIST_LIMIT =
15

Instance Method Summary collapse

Constructor Details

#initialize(summary) ⇒ LibrarySummaryTextRenderer

Returns a new instance of LibrarySummaryTextRenderer.

Parameters:



16
17
18
19
# File 'lib/fontisan/formatters/library_summary_text_renderer.rb', line 16

def initialize(summary)
  @summary = summary
  @lines = []
end

Instance Method Details

#renderString

Returns:

  • (String)


22
23
24
25
26
27
28
29
# File 'lib/fontisan/formatters/library_summary_text_renderer.rb', line 22

def render
  render_header
  render_aggregates
  render_script_coverage
  render_duplicates
  render_license_distribution
  @lines.join("\n")
end