Class: Printer

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

Instance Method Summary collapse

Instance Method Details



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/printer.rb', line 4

def print(work_log_list)
  puts ''
  if work_log_list.empty?
    puts 'Work log(s) not found'
  else
    work_log_list.each do |work_log|
      puts "#{work_log.id} | #{work_log}"
    end
  end
  puts ''
end