Class | Sprockets::Asset |
In: |
lib/sprockets/asset.rb
|
Parent: | Object |
`Asset` is the base class for `BundledAsset` and `StaticAsset`.
content_type | [R] | |
digest | [R] | |
length | [R] | |
logical_path | [R] | |
mtime | [R] | |
pathname | [R] |
Checks if Asset is fresh by comparing the actual mtime and digest to the inmemory model.
Used to test if cached models need to be rebuilt.
Expand asset into an `Array` of parts.
Appending all of an assets body parts together should give you the asset‘s contents as a whole.
This allows you to link to individual files for debugging purposes.
Check if dependency is fresh.
`dep` is a `Hash` with `path`, `mtime` and `hexdigest` keys.
A `Hash` is used rather than other `Asset` object because we want to test non-asset files and directories.
Internal: String paths that are marked as dependencies after processing.
Default to an empty `Array`.