| Class | Sprockets::Base |
| In: |
lib/sprockets/base.rb
|
| Parent: | Object |
`Base` class for `Environment` and `Index`.
| cache | [R] | Get persistent cache store |
| context_class | [R] |
Get `Context` class.
This class maybe mutated and mixed in with custom helpers.
environment.context_class.instance_eval do
include MyHelpers
def asset_url; end
end
|
| logger | [RW] | Get and set `Logger` instance. |
Set persistent cache store
The cache store must implement a pair of getters and setters. Either `get(key)`/`set(key, value)`, `[key]`/`[key]=value`, `read(key)`/`write(key, value)`.