Class: ShowReport

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

Overview

Verbosity level Description
0 No output
1 Default output messages
2 Show hall of fame
3 Show final values
4 Show Initial values

Instance Method Summary collapse

Constructor Details

#initialize(report) ⇒ ShowReport

Returns a new instance of ShowReport.



13
14
15
# File 'lib/teuton/report/show.rb', line 13

def initialize(report)
  @report = report
end

Instance Method Details

#call(verbose) ⇒ Object



17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/teuton/report/show.rb', line 17

def call(verbose)
  return if Application.instance.quiet?

  show_initial_configurations if verbose > 2
  if filename.to_s.include? "resume"
    show_resume
  else
    show_targets_history
  end
  show_final_values if verbose > 1
  show_hall_of_fame if verbose > 0
end