class ArrayProgressConfiguration

Public Class Methods

item_width() click to toggle source
# File lib/array_with_progress/array_progress_configuration.rb, line 8
def self.item_width
  terminal_width - 22
end
terminal_width() click to toggle source
# File lib/array_with_progress/array_progress_configuration.rb, line 2
def self.terminal_width
  `tput cols`.to_i
rescue Errno::ENOENT => e
  80
end