Skip to content

Instantly share code, notes, and snippets.

@zph
Last active December 11, 2015 23:48
Show Gist options
  • Save zph/4679307 to your computer and use it in GitHub Desktop.
Save zph/4679307 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# Slow process, CPU intensive, and takes up extra storage space
# But allows using DASH to easily reference RubyGem Rdocs!!!
`gem list | cut -d'(' -f1`.split("\n").map(&:rstrip).each do |g|
`gem rdoc #{g} --rdoc --overwrite`
puts "#{g} rdoc generated"
end
@zph
Copy link
Author

zph commented Jan 31, 2013

gem rdoc --all

Works too, but it generates the RI docs that I didn't want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment