Class: Mittsu::LoadingManager
- Inherits:
-
Object
- Object
- Mittsu::LoadingManager
- Defined in:
- lib/mittsu/loaders/loading_manager.rb
Instance Method Summary collapse
-
#initialize ⇒ LoadingManager
constructor
A new instance of LoadingManager.
- #item_end(url) ⇒ Object
- #item_start(url) ⇒ Object
Constructor Details
#initialize ⇒ LoadingManager
Returns a new instance of LoadingManager.
3 4 5 |
# File 'lib/mittsu/loaders/loading_manager.rb', line 3 def initialize @loaded, @total = 0, 0 end |
Instance Method Details
#item_end(url) ⇒ Object
11 12 13 |
# File 'lib/mittsu/loaders/loading_manager.rb', line 11 def item_end(url) @loaded += 1 end |
#item_start(url) ⇒ Object
7 8 9 |
# File 'lib/mittsu/loaders/loading_manager.rb', line 7 def item_start(url) @total += 1 end |