Class: Audition::Report::Text
- Inherits:
-
Object
- Object
- Audition::Report::Text
- Defined in:
- lib/audition/report.rb
Overview
Text renderer, kept separate from the data so styles stay injectable.
Constant Summary collapse
- WRAP =
74
Instance Method Summary collapse
-
#initialize(report, style) ⇒ Text
constructor
A new instance of Text.
- #render ⇒ Object
Constructor Details
#initialize(report, style) ⇒ Text
Returns a new instance of Text.
217 218 219 220 |
# File 'lib/audition/report.rb', line 217 def initialize(report, style) @report = report @style = style end |
Instance Method Details
#render ⇒ Object
222 223 224 225 |
# File 'lib/audition/report.rb', line 222 def render [header, *file_sections, *dynamic_section, summary] .join("\n") end |