sprockets
https://github.com/rails/sprockets
Ruby
Rack-based asset packaging system
Sprockets::UnloadedAsset#filename
Internal: Full file path without schema This returns a string containing the full path to the asset without the schema. Information is loaded lazily since we want `UnloadedAsset.new(dep, self).relative_path` to be fast. Calling this method the first time allocates an array and a hash. Example If the URI is `file:///Full/path/app/assets/javascripts/application.js"` then the filename would be `"/Full/path/app/assets/javascripts/application.js"` Returns a String.
Edit
git clone [email protected]:rails/sprockets.git
cd sprockets
open lib/sprockets/unloaded_asset.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Sprockets--UnloadedAsset-filename-for-pr
# Commit to gitgit add lib/sprockets/unloaded_asset.rbgit commit -m "better docs for Sprockets::UnloadedAsset#filename"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Sprockets--UnloadedAsset-filename-for-pr
hub pull-request
# Celebrate!