Class: Formatter

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

Instance Method Summary collapse

Instance Method Details



23
24
25
26
27
28
29
30
31
# File 'lib/formatter.rb', line 23

def print_progress_bar_long
  puts ''
       bar = ProgressBar.new
      100.times do
        sleep 0.075
       bar.increment!
    end
  puts ''
end


33
34
35
36
37
38
39
40
41
# File 'lib/formatter.rb', line 33

def print_progress_bar_short
  puts ''
       bar = ProgressBar.new
    100.times do
      sleep 0.0055
      bar.increment!
  end
  puts ''    
end