sprockets
https://github.com/rails/sprockets
Ruby
Rack-based asset packaging system
Sprockets::Environment#index
Returns a cached version of the environment. All its file system calls are cached which makes `cached` much faster. This behavior is ideal in production since the file system only changes between deploys.
Edit
git clone [email protected]:rails/sprockets.git
cd sprockets
open lib/sprockets/environment.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Sprockets--Environment-index-for-pr
# Commit to gitgit add lib/sprockets/environment.rbgit commit -m "better docs for Sprockets::Environment#index"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Sprockets--Environment-index-for-pr
hub pull-request
# Celebrate!