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:\\
Things are still largely the same with Ruby Installer 2.4.1.2 (year 2017). If I run ri Array, it shows Array < Object and nothing else. If I run ri "Array#each", I get the familiar "Nothing known..." message. In short, the ri-format documentation on Ruby core and standard libraries are missing.
Here's how I got my copy of core/stdlib ri-documentation. Of course, Ruby must be installed prior to this.
cd to that folder and run rdoc --all --ri
~/.rdoc directory.Now if you try running ri Array or ri "Array#each" you'll get the documentation in all its glory.
Run rdoc --all --ri on directory containing source code for same ruby version as your installed version.
rvm docs generate-ri could work, but you have to use Cygwin or Ubuntu on Windows (if on Windows 10) to use rvm.gem rdoc --all --ri --no-rdoc installs ri-documentation for all your gems. It doesn't install the core/stdlib documentations.gem install rdoc-data followed by rdoc-data --install only works for Ruby versions up to 2.3.0.