How do I install the Ruby ri documentation?

前端 未结 8 1404
既然无缘
既然无缘 2020-12-05 02:56

I\'ve recently installed Ruby 1.9.1 on Windows 7, and apparently it doesn\'t come with the standard ri documentation. So when I do \'ri Array\', I get:

C:\\         


        
8条回答
  •  Happy的楠姐
    2020-12-05 03:28

    All the Ruby Docs are at http://www.ruby-doc.org

    So the array documentation is at:

    http://ruby-doc.org/core/classes/Array.html

    Never tried it on windows but because its saying Nothing Known about X its not that its not installed just not got anything there.

    Try installing a gem as you can then ri GEM_CLASS as that should provide defentions, should let us see if its missing documentation or if ri's not looking in the right place

提交回复
热议问题