本文介绍了您可以为现有的 gem 安装文档吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Rubyinside 提到了一篇博文 关于如何通过不安装 RI 或 RDoc 来加速 gem 安装.
Rubyinside mentioned a blog post on how to speed up gem installation by not installing RI or RDoc.
是否可以安装一个 gem,然后在以后安装文档,这样您就可以在闲暇时快速破解和 RTFM?
Is it possible to install a gem and subsequently install documentation at a later date, so you can hack in haste and RTFM at leisure?
推荐答案
> gem help rdoc
Usage: gem rdoc [args] [options]
Options:
--all Generate RDoc/RI documentation for all
installed gems
--[no-]rdoc Include RDoc generated documents
--[no-]ri Include RI generated documents
-v, --version VERSION Specify version of gem to rdoc
Arguments:
GEMNAME gem to generate documentation for (unless --all)
Summary:
Generates RDoc for pre-installed gems
Defaults:
--version '>= 0' --rdoc --ri
这篇关于您可以为现有的 gem 安装文档吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!