Class Sprockets::Index
In: lib/sprockets/index.rb
Parent: Base

`Index` is a special cached version of `Environment`.

The expection is that all of its file system methods are cached for the instances lifetime. This makes `Index` much faster. This behavior is ideal in production environments where the file system is immutable.

`Index` should not be initialized directly. Instead use `Environment#index`.

Methods

Public Class methods

Public Instance methods

No-op return self as index

Protected Instance methods

Cache asset building in memory and in persisted cache.

Index is immutable, any methods that try to clear the cache should bomb.

[Validate]