Ruby 如何修复rvm中的ri文档重复

Ruby 如何修复rvm中的ri文档重复,ruby,jruby,rvm,ri,Ruby,Jruby,Rvm,Ri,这是我想做的 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 我在UbuntuNatty上使用RVM,默认(也是唯一的ruby)是JRuby1.6.3 我已经修改了我的.rvmrc,默认情况

这是我想做的

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
我在UbuntuNatty上使用RVM,默认(也是唯一的ruby)是JRuby1.6.3

我已经修改了我的.rvmrc,默认情况下生成了ri文档,因此

export rvm_gem_options=""
export rvm_gem_options=""
除此之外,在我记忆中,一切都是标准的


想法?

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

ri --system Array
或者

将此添加到您的
.profile

export RI="--system"
但是,这样你就看不到新宝石的文档了

所以,我试着不限制RI

只是

这似乎奏效了


但我最后的答案是

更新
.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=""