sprockets

https://github.com/rails/sprockets

Ruby

Rack-based asset packaging system

Sprockets::DirectiveProcessor#compile_header_pattern

Directives will only be picked up if they are in the header
of the source file. C style (/* */), JavaScript (//), and
Ruby (#) comments are supported.

Directives in comments after the first non-whitespace line
of code will not be processed.

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-compile_header_pattern-for-pr


# Commit to git

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


# 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-compile_header_pattern-for-pr

hub pull-request


# Celebrate!