LoginSignup
19
19

More than 5 years have passed since last update.

インストール済みgemの ri と rdoc を一括でインストール

Posted at

今までずっと

~/.gemrc
install: --no-ri --no-rdoc
update: --no-ri --no-rdoc

と処理速度優先でドキュメントはインストールしてなかったけど、rcodetoolsを使えば簡単にriドキュメントにアクセスできるようなので全部入れなおすことにしました。

上記の .gemrc に設定してデフォルトで rdoc をインストールしない方法はすぐに見つかるけど逆は見つからなかったのでStackOverflowで質問したらすぐ答えが返ってきた。本当にいつもありがとうございます。

ri と rdoc を一括インストール

$ gem rdoc --all --ri

でインストール済みの全てのgemに対応する rdoc と ri がインストールされます。
ちなみに rdoc を(使いやすさのために?)変換したのが ri だそうです。

参考

Ruby の ri ドキュメントに付いて教えてください。 1. ri ドキュ.. - 人力検索はてな
http://q.hatena.ne.jp/1234512471

ruby on rails - How can I install ri and rdoc files for gems afterwards? - Stack Overflow
http://stackoverflow.com/questions/18544900/how-can-i-install-ri-and-rdoc-files-for-gems-afterwards/18544985?noredirect=1#18544985

19
19
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
19