Class: Rigor::CLI::TypeScanRenderer
- Inherits:
-
Object
- Object
- Rigor::CLI::TypeScanRenderer
- Includes:
- Renderable
- Defined in:
- lib/rigor/cli/type_scan_renderer.rb
Overview
Renders a ‘TypeScanCommand::Report` as either a terminal-friendly text summary or a JSON document suitable for CI ingestion. Text and JSON branches share a single source of truth (the `Report` value object) so the two formats stay in lockstep; that pairing is why this class is a bit longer than the default class-length budget.
Instance Method Summary collapse
-
#initialize(out:) ⇒ TypeScanRenderer
constructor
A new instance of TypeScanRenderer.
Methods included from Renderable
Constructor Details
#initialize(out:) ⇒ TypeScanRenderer
Returns a new instance of TypeScanRenderer.
18 19 20 |
# File 'lib/rigor/cli/type_scan_renderer.rb', line 18 def initialize(out:) @out = out end |