Class: Spoom::Coverage::Cards::SorbetIntro
- Extended by:
- T::Sig
- Defined in:
- lib/spoom/coverage/report.rb
Constant Summary
Constants inherited from Card
Instance Attribute Summary
Attributes inherited from Card
Instance Method Summary collapse
- #erb ⇒ Object
-
#initialize(sorbet_intro_commit: nil, sorbet_intro_date: nil) ⇒ SorbetIntro
constructor
rubocop:disable Lint/MissingSuper.
Methods inherited from Erb
Methods inherited from Template
Constructor Details
#initialize(sorbet_intro_commit: nil, sorbet_intro_date: nil) ⇒ SorbetIntro
rubocop:disable Lint/MissingSuper
244 245 246 247 |
# File 'lib/spoom/coverage/report.rb', line 244 def initialize(sorbet_intro_commit: nil, sorbet_intro_date: nil) # rubocop:disable Lint/MissingSuper @sorbet_intro_commit = sorbet_intro_commit @sorbet_intro_date = sorbet_intro_date end |
Instance Method Details
#erb ⇒ Object
250 251 252 253 254 255 256 257 |
# File 'lib/spoom/coverage/report.rb', line 250 def erb <<~ERB <div class="text-center" style="margin-top: 30px"> Typchecked by Sorbet since <b>#{@sorbet_intro_date&.strftime("%F")}</b> (commit <b>#{@sorbet_intro_commit}</b>). </div> ERB end |