Class: Preek::VerboseReport
- Inherits:
-
Object
- Object
- Preek::VerboseReport
- Defined in:
- lib/preek/report.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(examiner, output) ⇒ VerboseReport
constructor
A new instance of VerboseReport.
- #report ⇒ Object
Constructor Details
#initialize(examiner, output) ⇒ VerboseReport
Returns a new instance of VerboseReport.
10 11 12 |
# File 'lib/preek/report.rb', line 10 def initialize(examiner, output) @examiner, @output = examiner, output end |
Class Method Details
.verbose? ⇒ Boolean
6 7 8 |
# File 'lib/preek/report.rb', line 6 def self.verbose? true end |
Instance Method Details
#report ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/preek/report.rb', line 14 def report print_header if @examiner.smelly? report_smells else report_success end end |