Class: Audition::Report::Text
- Inherits:
-
Object
- Object
- Audition::Report::Text
- Defined in:
- lib/audition/report/text.rb
Overview
Terminal renderer; styles stay injectable so pipes and --plain degrade cleanly.
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.
10 11 12 13 |
# File 'lib/audition/report/text.rb', line 10 def initialize(report, style) @report = report @style = style end |
Instance Method Details
#render ⇒ Object
15 16 17 18 |
# File 'lib/audition/report/text.rb', line 15 def render [header, *file_sections, *dynamic_section, summary] .join("\n") end |