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

body   dependencies   encode_with   fresh?   init_with   new   to_a  

Attributes

source  [R] 

Public Class methods

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.

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`.

Expand asset into an `Array` of parts.

[Validate]