Class: RenuoBinCheck::Printer
- Inherits:
-
Object
- Object
- RenuoBinCheck::Printer
- Defined in:
- lib/renuo_bin_check/printer.rb
Instance Method Summary collapse
-
#print_error_output(result) ⇒ Object
:reek:UtilityFunction.
-
#print_standard_output(results) ⇒ Object
:reek:UtilityFunction.
Instance Method Details
#print_error_output(result) ⇒ Object
:reek:UtilityFunction
9 10 11 12 13 |
# File 'lib/renuo_bin_check/printer.rb', line 9 def print_error_output(result) error_output = result.error_output error_output = result.standard_output if error_output == '' $stderr.puts error_output end |
#print_standard_output(results) ⇒ Object
:reek:UtilityFunction
4 5 6 |
# File 'lib/renuo_bin_check/printer.rb', line 4 def print_standard_output(results) results.each { |result| $stdout.puts result.standard_output } end |