一无所知....尝试ri String#upcase Ruby时 [英] Nothing known about.... when trying ri String#upcase Ruby
问题描述
我刚刚安装了RVM,并且正在阅读The Well-Grounded Rubyist一书.在第一章中,我应该尝试ri String#upcase
来查看有关upcase方法的文档,但是会收到一条消息,提示:
I have just installed the RVM and I am reading The Well-Grounded Rubyist book. In the first chapter I am supposed to try ri String#upcase
to view documentation on the upcase method, however I get a message saying:
对String#upcase一无所知
Nothing known about String#upcase
我在SO上找到了一些帖子,告诉我这可能是因为未安装RDoc.但是我不知道如何解决它.
I found some posts here on SO telling me that it probably is because RDoc is not installed. However I do not understand how to fix it.
我正在使用Mac OSX 10.6和最新的RVM.除了Apple开发人员工具包随附的标准Ruby解释器之外,我仅安装了1.9.2.
I am using Mac OSX 10.6, and latest RVM. I have only installed 1.9.2, in addition to the standard Ruby interpreter which come along with the Developer kit from Apple.
推荐答案
您生成文档吗?
rvm docs generate
这篇关于一无所知....尝试ri String#upcase Ruby时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!