sprockets

https://github.com/rails/sprockets

Ruby

Rack-based asset packaging system

Sprockets::UnloadedAsset#params

Internal: Hash of param values

This information is generated and used internally by Sprockets.
Known keys include `:type` which stores the asset's mime-type, `:id` which is a fully resolved
digest for the asset (includes dependency digest as opposed to a digest of only file contents)
and `:pipeline`. Hash may be empty.

Example

If the URI is `file:///Full/path/app/assets/javascripts/application.js"type=application/javascript`
Then the params would be `{type: "application/javascript"}`

Returns a Hash.

Source | Google | Stack overflow

Edit

git clone [email protected]:rails/sprockets.git

cd sprockets

open lib/sprockets/unloaded_asset.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Sprockets--UnloadedAsset-params-for-pr


# Commit to git

git add lib/sprockets/unloaded_asset.rbgit commit -m "better docs for Sprockets::UnloadedAsset#params"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Sprockets--UnloadedAsset-params-for-pr

hub pull-request


# Celebrate!