Class: Mittsu::LoadingManager

Inherits:
Object
  • Object
show all
Defined in:
lib/mittsu/loaders/loading_manager.rb

Instance Method Summary collapse

Constructor Details

#initializeLoadingManager

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