sprockets

https://github.com/rails/sprockets

Ruby

Rack-based asset packaging system

Sprockets::Exporters::Base#initialize

Public: Creates new instance

Initialize will be called with
keyword arguments:

- asset: An instance of Sprockets::Asset.
- environment: An instance of Sprockets::Environment.
- directory: String representing the target directory to write to.

These will all be stored as accessible values. In addition a
+target+ will be available which is the target directory and
the asset's digest path combined.

Source | Google | Stack overflow

Edit

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

cd sprockets

open lib/sprockets/exporters/base.rb

Contribute

# Make a new branch

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


# Commit to git

git add lib/sprockets/exporters/base.rbgit commit -m "better docs for Sprockets::Exporters::Base#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--Exporters--Base-initialize-for-pr

hub pull-request


# Celebrate!