thor

https://github.com/rails/thor

Ruby

Thor is a toolkit for building powerful command-line interfaces.

Thor::Actions#insert_into_file!

No Docs, write some!

Source | Google | Stack overflow

Edit

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

cd thor

open lib/thor/actions/inject_into_file.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Thor--Actions-insert_into_file--for-pr


# Commit to git

git add lib/thor/actions/inject_into_file.rbgit commit -m "better docs for Thor::Actions#insert_into_file!"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Thor--Actions-insert_into_file--for-pr

hub pull-request


# Celebrate!