Class: Spoom::Coverage::Cards::Card
- Extended by:
- T::Sig
- Defined in:
- lib/spoom/coverage/report.rb
Constant Summary collapse
- TEMPLATE =
T.let("#{Spoom::SPOOM_PATH}/templates/card.erb", String)
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
: String?.
-
#title ⇒ Object
readonly
: String?.
Instance Method Summary collapse
-
#initialize(template: TEMPLATE, title: nil, body: nil) ⇒ Card
constructor
: (?template: String, ?title: String?, ?body: String?) -> void.
Methods inherited from Template
Constructor Details
#initialize(template: TEMPLATE, title: nil, body: nil) ⇒ Card
: (?template: String, ?title: String?, ?body: String?) -> void
97 98 99 100 101 |
# File 'lib/spoom/coverage/report.rb', line 97 def initialize(template: TEMPLATE, title: nil, body: nil) super(template: template) @title = title @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
: String?
94 95 96 |
# File 'lib/spoom/coverage/report.rb', line 94 def body @body end |
#title ⇒ Object (readonly)
: String?
94 95 96 |
# File 'lib/spoom/coverage/report.rb', line 94 def title @title end |