Method: StatusBoxView#to_s

Defined in:
lib/views.rb

#to_sObject



72
73
74
75
76
77
78
# File 'lib/views.rb', line 72

def to_s
  puts '-' * SCREEN_WIDTH
  puts
  num_lines = @statuses.length
  lines = @statuses.last(8).fill(num_lines, 8 - num_lines) { '' }
  lines.map { |line| line.at_width(SCREEN_WIDTH) }.join("\n")
end