Ruby -ri doesn’t know anything by default

I installed a new version of Ruby and the documentation was not populated.

Thanks to this answer

Go in your Ruby root folder and run

rdoc --all --ri

It generates all the documentation for evey .rb file under the current folder.


Windows – Multiple ruby version

Needed to have mutliple version of ruby on my dev machine and I found Uru

Here is just a quick post-it of the main commands (suppose Uru is arleady installed)

Add a new ruby version

uru admin add C:\path\to\ruby\bin

List existing versions

uru ls

Switch to another version

uru 230p0

to switch to the version 2.3.0 of ruby