我首先尝试安装宝石gem install rdoc-data
成功安装后,我尝试rdoc-data --install
但是,我收到错误:
Your ruby version 2.1.1 is not supported, only 1.8.7, 1.9.2, 1.9.3, 2.0.0
这是否意味着我必须降级到Ruby 2.0.0?
我尝试运行ri File
来阅读文档,但我得到的是消息:Nothing known about File
。
对旧的Stack Overflow帖子和某人suggested running rvm docs generate
进行了一些研究,但我得到的只是"Currently 'rvm docs ...' does not work with non-rvm rubies.