Class: Musical::Notification::ProgressBar

Inherits:
ProgressBar
  • Object
show all
Defined in:
lib/musical/notification/progress_bar.rb

Class Method Summary collapse

Class Method Details

.create(options = {}) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/musical/notification/progress_bar.rb', line 5

def self.create(options = {})
  progress_bar = super

  Thread.new do
    while !progress_bar.finished?
      progress_bar.refresh
    end
  end
  progress_bar
end