Nothing known about… when trying ri String#upcase Ruby

天涯浪子 提交于 2019-11-27 12:21:12
Casper

Did you generate the docs?

rvm docs generate

https://rvm.io/rubies/docs/

RDoc is installed, I'm not sure why that particular lookup does not work. Perhaps somebody else can shed some light on that.

However, if you just need to find out about how to use particular parts of the API, you can't go wrong with a google search. All of the Rdoc documentation is available online from numerous locations.

Here's String#upcase for example: http://ruby-doc.org/core/classes/String.html#M001155

BulletTime

It might be that docs aren't working because you're using the latest ruby version, 2.1, in which rvm has some problems. It doesn't generate docs, thus you can't retrieve the docs with ri.

**Error: **

Your ruby version 2.1.2 is not supported, only 1.8.7, 1.9.2, 1.9.3, 2.0.0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!