Class: QuietQuality::Cli::Presenter
- Inherits:
-
Object
- Object
- QuietQuality::Cli::Presenter
- Defined in:
- lib/quiet_quality/cli/presenter.rb
Instance Method Summary collapse
-
#initialize(stream:, options:, outcomes:, messages:) ⇒ Presenter
constructor
A new instance of Presenter.
- #log_results ⇒ Object
Constructor Details
#initialize(stream:, options:, outcomes:, messages:) ⇒ Presenter
Returns a new instance of Presenter.
4 5 6 7 8 9 |
# File 'lib/quiet_quality/cli/presenter.rb', line 4 def initialize(stream:, options:, outcomes:, messages:) @stream = stream @options = @outcomes = outcomes @messages = end |
Instance Method Details
#log_results ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/quiet_quality/cli/presenter.rb', line 11 def log_results return if .quiet? if .light? log_light_outcomes else log_outcomes end end |