thor
https://github.com/rails/thor
Ruby
Thor is a toolkit for building powerful command-line interfaces.
Thor::Actions#inject_into_file!
No Docs, write some!
Edit
git clone [email protected]:rails/thor.git
cd thor
open lib/thor/actions/inject_into_file.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Thor--Actions-inject_into_file--for-pr
# Commit to gitgit add lib/thor/actions/inject_into_file.rbgit commit -m "better docs for Thor::Actions#inject_into_file!"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Thor--Actions-inject_into_file--for-pr
hub pull-request
# Celebrate!