Class: Rigor::CLI::TypeScanRenderer

Inherits:
Object
  • Object
show all
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

Methods included from Renderable

#render

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