Class: Schoolkeep::Views::AssetCache
- Inherits:
-
Object
- Object
- Schoolkeep::Views::AssetCache
- Defined in:
- lib/schoolkeep/views/asset_cache.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
Instance Method Summary collapse
- #[](path) ⇒ Object
-
#initialize(host) ⇒ AssetCache
constructor
A new instance of AssetCache.
Constructor Details
#initialize(host) ⇒ AssetCache
Returns a new instance of AssetCache.
9 10 11 |
# File 'lib/schoolkeep/views/asset_cache.rb', line 9 def initialize(host) @host = host end |
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
7 8 9 |
# File 'lib/schoolkeep/views/asset_cache.rb', line 7 def host @host end |
Instance Method Details
#[](path) ⇒ Object
13 14 15 |
# File 'lib/schoolkeep/views/asset_cache.rb', line 13 def [](path) cached_get(path) || path end |