Class: Preek::VerboseReport

Inherits:
Object
  • Object
show all
Defined in:
lib/preek/report.rb

Direct Known Subclasses

QuietReport

Class Method Summary collapse

Instance Method Summary collapse

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

Returns:

  • (Boolean)


6
7
8
# File 'lib/preek/report.rb', line 6

def self.verbose?
  true
end

Instance Method Details

#reportObject



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