sprockets

https://github.com/rails/sprockets

Ruby

Rack-based asset packaging system

Sprockets::Manifest#initialize

Create new Manifest associated with an `environment`. `filename` is a full
path to the manifest json file. The file may or may not already exist. The
dirname of the `filename` will be used to write compiled assets to.
Otherwise, if the path is a directory, the filename will default a random
".sprockets-manifest-*.json" file in that directory.

  Manifest.new(environment, "./public/assets/manifest.json")

Source | Google | Stack overflow

Edit

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

cd sprockets

open lib/sprockets/manifest.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Sprockets--Manifest-initialize-for-pr


# Commit to git

git add lib/sprockets/manifest.rbgit commit -m "better docs for Sprockets::Manifest#initialize"


# 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--Manifest-initialize-for-pr

hub pull-request


# Celebrate!