Skip to content

Instantly share code, notes, and snippets.

@stephenmckinney
Created December 7, 2012 17:20
Show Gist options
  • Save stephenmckinney/4234816 to your computer and use it in GitHub Desktop.
Save stephenmckinney/4234816 to your computer and use it in GitHub Desktop.
RVM YUNO ri! -> Generate Ruby's ri / rdoc documentation for all RVM rubies

See: https://rvm.io/rubies/docs/

In order to conserve space, RVM does not automatically generate and install each Ruby's ri / rdoc documentation.

Provided you have not cleaned up the extracted sources for all currently installed Rubies by executing 'rvm cleanup all' then you can install the docs for all currently installed Rubies by executing:

rvm all do rvm docs generate all

Now execute:

ri Array#map

Or if on zsh:

ri 'Array#map'

Success!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment