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:\>ri Array Nothing known about Array
Is there a way I can install this documentation so that the above works?
ri is a tool that allows Ruby documentation to be viewed on the command-line. You can use ri to look up information from either the command line or interactively. When you run ri without any arguments it will launch in interactive mode. In interactive mode you can tab-complete class and method names.
ri an online reference tool developed by Dave Thomas, the famous pragmatic programmer. When you have a question about the behavior of a certain method, you can invoke ri to read the brief explanation of the method.
In case people on other platforms need to install their ri docs (like I did). This article gives the why and the how:
http://jstorimer.com/ri.html
The command is:
gem rdoc --all --ri --no-rdoc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With