Module: Liri::Common::Progressbar
- Defined in:
- lib/common/progressbar.rb
Class Method Summary collapse
Class Method Details
.start(params = {}) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/common/progressbar.rb', line 14 def start(params = {}) @progressing = true = ProgressBar.create(params) Thread.new do while @progressing .increment sleep(0.1) end end yield @progressing = false end |