Class: Alula::Manifest::AssetTracker
- Inherits:
-
Object
- Object
- Alula::Manifest::AssetTracker
- Defined in:
- lib/alula/core_ext/manifest.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
-
#initialize(hash, progress_callback) ⇒ AssetTracker
constructor
A new instance of AssetTracker.
Constructor Details
#initialize(hash, progress_callback) ⇒ AssetTracker
Returns a new instance of AssetTracker.
15 16 17 18 |
# File 'lib/alula/core_ext/manifest.rb', line 15 def initialize(hash, progress_callback) @hash = hash @progress_cb = progress_callback end |
Instance Method Details
#[](key) ⇒ Object
20 21 22 |
# File 'lib/alula/core_ext/manifest.rb', line 20 def [](key) @hash[key] end |
#[]=(key, value) ⇒ Object
24 25 26 27 |
# File 'lib/alula/core_ext/manifest.rb', line 24 def []=(key, value) @hash[key] = value @progress_cb.call if @progress_cb end |