Class: CompEx::AssetProvider
- Inherits:
-
Object
- Object
- CompEx::AssetProvider
- Defined in:
- lib/compex/asset_provider.rb
Class Method Summary collapse
Class Method Details
.provide(hashed) ⇒ Object
15 16 17 |
# File 'lib/compex/asset_provider.rb', line 15 def self.provide(hashed) @assets[hashed] ||= CompEx::Cache.get_asset(hashed) end |
.register(hash, value) ⇒ Object
5 6 7 8 9 |
# File 'lib/compex/asset_provider.rb', line 5 def self.register(hash, value) @assets ||= {} CompEx::Cache.cache_asset(hash, value) @assets[hash] = value end |
.reset_cache! ⇒ Object
11 12 13 |
# File 'lib/compex/asset_provider.rb', line 11 def self.reset_cache! @assets = {} end |