Created
November 16, 2014 04:29
-
-
Save darinwilson/a4051ba846d5b6cdad85 to your computer and use it in GitHub Desktop.
Generate and open RDocs for any installed gem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# usage: gemdoc GEM_NAME | |
# eg: gemdoc rspec-mocks | |
# | |
gemdoc() { | |
gem rdoc $1 --rdoc | |
(cd `gem env gemdir`/doc/$1*; open rdoc/index.html) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment