| Class | Sprockets::AssetAttributes |
| In: |
lib/sprockets/asset_attributes.rb
|
| Parent: | Object |
`AssetAttributes` is a wrapper similar to `Pathname` that provides some helper accessors.
These methods should be considered internalish.
| environment | [R] | |
| pathname | [R] |
Returns an `Array` of engine extensions.
"foo.js.coffee.erb"
# => [".coffee", ".erb"]
Reverse guess logical path for fully expanded path.
This has some known issues. For an example if a file is shaddowed in the path, but is required relatively, its logical path will be incorrect.
Gets digest fingerprint.
"foo-0aa2105d29558f3eb790d411d7d8fb66.js"
# => "0aa2105d29558f3eb790d411d7d8fb66"