Class: SorbetProgress::Reporters::Verbose

Inherits:
Base
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/sorbet_progress/reporters/verbose.rb

Overview

The first reporter written. It’s quite verbose, so I’m calling it ..

Instance Method Summary collapse

Constructor Details

#initialize(calculator) ⇒ Verbose

Returns a new instance of Verbose.



13
14
15
# File 'lib/sorbet_progress/reporters/verbose.rb', line 13

def initialize(calculator)
  @calculator = calculator
end

Instance Method Details

#reportObject



18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/sorbet_progress/reporters/verbose.rb', line 18

def report
  [
    "Sorbet Progress\n",
    "Progress for sig coverage",
    coverage_metrics,
    "\nProgress for file coverage",
    sigil_percentages,
    "---------------------------------------",
    "Total: \t\t\t#{@calculator.total}\t100%",
    "Keep up the good work 👍"
  ].flatten.join("\n")
end