sprockets

https://github.com/rails/sprockets

Ruby

Rack-based asset packaging system

Sprockets::DirectiveProcessor#process_require_self_directive

`require_self` causes the body of the current file to be inserted
before any subsequent `require` directives. Useful in CSS files, where
it's common for the index file to contain global styles that need to
be defined before other dependencies are loaded.

    /*= require "reset"
     *= require_self
     *= require_tree .
     */

Source | Google | Stack overflow

Edit

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

cd sprockets

open lib/sprockets/directive_processor.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Sprockets--DirectiveProcessor-process_require_self_directive-for-pr


# Commit to git

git add lib/sprockets/directive_processor.rbgit commit -m "better docs for Sprockets::DirectiveProcessor#process_require_self_directive"


# 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--DirectiveProcessor-process_require_self_directive-for-pr

hub pull-request


# Celebrate!