Class: Uploadr::Bar
Instance Method Summary collapse
- #increment ⇒ Object
-
#initialize ⇒ Bar
constructor
A new instance of Bar.
Constructor Details
#initialize ⇒ Bar
Returns a new instance of Bar.
7 8 9 |
# File 'lib/uploadr/bar.rb', line 7 def initialize @progress_bar = ProgressBar.new(Actor[:queue].files.length) end |
Instance Method Details
#increment ⇒ Object
11 12 13 |
# File 'lib/uploadr/bar.rb', line 11 def increment @progress_bar.increment! end |