4

这就是我想做的

ri Array

很简单,对吧?

错误的!

More than one class or module matched your request. You can refine
your search by asking for information on one of:

    Array, TSortArray, Array, TSortArray

我在 Ubuntu Natty 上使用 RVM,默认(并且只有 ruby​​)是 jruby 1.6.3

我已经修改了我的 .rvmrc 以默认制作 ri 文档,因此

export rvm_gem_options=""

除此之外,据我所知,一切都是标准的。

想法?

4

1 回答 1

3

限制 RI 只搜索 Ruby 标准库中的文档

ri --system Array

或者,

将此添加到您的.profile

export RI="--system"

但是,那么您将看不到新宝石的文档...

所以,我试着不限制 RI ......

只是,

gem rdoc --all

这似乎奏效了。


但我的最终答案是,

更新.gemrc看起来有点像这样

install:  --remote --gen-rdoc --run-tests
update: --remote --gen-rdoc --run-tests
rdoc:  --all --inline-source --line-numbers --promiscuous --show-hash

.rvmrc

export rvm_gem_options=""
于 2011-08-14T22:38:28.673 回答