Class Sprockets::BundledAsset
In: lib/sprockets/bundled_asset.rb
Parent: Asset

`BundledAsset`s are used for files that need to be processed and concatenated with other assets. Use for `.js` and `.css` files.

Methods

Public Class methods

Define extra attributes to be serialized.

Public Instance methods

Get asset‘s own processed contents. Excludes any of its required dependencies but does run any processors or engines on the original file.

Return an `Array` of `Asset` files that are declared dependencies.

Compute digest of concatenated source.

Serialize custom attributes in `BundledAsset`.

Checks if Asset is stale by comparing the actual mtime and digest to the inmemory model.

Initialize `BundledAsset` from serialized `Hash`.

Get size of concatenated source.

Get latest mtime of all its dependencies.

Expand asset into an `Array` of parts.

Return `String` of concatenated source.

Protected Instance methods

Return new blank `Context` to evaluate processors in.

Get `Context` after processors have been ran on it. This trackes any dependencies that processors have added to it.

All paths that this asset depends on. This list may include non-assets like directories.

[Validate]