Sha256: db5979d8396ac03e8f4f3aa525f9041bf1a5528c4bcc2f271016ab5b05a6be57

Contents?: true

Size: 250 Bytes

Versions: 20

Compression:

Stored size: 250 Bytes

Contents

module Mittsu
  class LoadingManager
    def initialize
      @loaded, @total = 0, 0
    end

    def item_start(url)
      @total += 1
    end

    def item_end(url)
      @loaded += 1
    end
  end

  DefaultLoadingManager = LoadingManager.new
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
mittsu-0.5.0 lib/mittsu/loaders/loading_manager.rb
mittsu-0.4.1 lib/mittsu/loaders/loading_manager.rb
mittsu-0.4.0 lib/mittsu/loaders/loading_manager.rb
mittsu-0.3.3 lib/mittsu/loaders/loading_manager.rb
mittsu-0.3.2 lib/mittsu/loaders/loading_manager.rb
mittsu-0.3.1 lib/mittsu/loaders/loading_manager.rb
mittsu-0.3.0 lib/mittsu/loaders/loading_manager.rb
mittsu-0.2.4 lib/mittsu/loaders/loading_manager.rb
mittsu-0.2.3 lib/mittsu/loaders/loading_manager.rb
mittsu-0.2.2 lib/mittsu/loaders/loading_manager.rb
mittsu-0.2.1 lib/mittsu/loaders/loading_manager.rb
mittsu-0.2.0 lib/mittsu/loaders/loading_manager.rb
mittsu-0.1.7 lib/mittsu/loaders/loading_manager.rb
mittsu-0.1.6 lib/mittsu/loaders/loading_manager.rb
mittsu-0.1.5 lib/mittsu/loaders/loading_manager.rb
mittsu-0.1.4 lib/mittsu/loaders/loading_manager.rb
mittsu-0.1.3 lib/mittsu/loaders/loading_manager.rb
mittsu-0.1.2 lib/mittsu/loaders/loading_manager.rb
mittsu-0.1.1 lib/mittsu/loaders/loading_manager.rb
mittsu-0.1.0 lib/mittsu/loaders/loading_manager.rb