Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 ruby 很陌生,我正在尝试通过命令提示符查看 Ruby 文档(我在 Windows 7 上,Ruby 版本 2.0.0p195)。但是,无论我尝试哪个命令,例如ri String#upcase,我总是收到消息“Nothing known about...”
ri String#upcase
我在这里阅读了几篇文章,但似乎没有任何解决问题的方法。
使用 RVM 为了获取系统文档,您可以发出命令
rvm docs generate-all
如果您只想要 ri 文档,这就是我所做的:
rvm docs generate-ri