Class: Fontisan::Formatters::LibrarySummaryTextRenderer
- Inherits:
-
Object
- Object
- Fontisan::Formatters::LibrarySummaryTextRenderer
- 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
-
#initialize(summary) ⇒ LibrarySummaryTextRenderer
constructor
A new instance of LibrarySummaryTextRenderer.
- #render ⇒ String
Constructor Details
#initialize(summary) ⇒ LibrarySummaryTextRenderer
Returns a new instance of LibrarySummaryTextRenderer.
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
#render ⇒ 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 |