Class | Sprockets::Asset |
In: |
lib/sprockets/asset.rb
|
Parent: | Object |
`Asset` is the base class for `BundledAsset` and `StaticAsset`.
environment | [R] | |
id | [R] | |
logical_path | [R] | |
pathname | [R] |
Return logical path with digest spliced in.
"foo/bar-37b51d194a7513e45b56f6524f2d51f2.js"
Add enumerator to allow `Asset` instances to be used as Rack compatible body objects.
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.