Today I Learned

hashrocket A Hashrocket project

Installing Ruby documentation locally with rvm

rvm docs generate-ri

Once installed you can do things at the command line like:

ri File

Which will print all the documentation for the file class.

I have a co-worker that will admonish you for not having ruby documentation close at hand (read: locally). I mean, what if you're deep in the Pensylvannia hills on a 1G connection and you need some help with the http api?

H/T Brian Dunn

See More #ruby TILs
Looking for help? Each developer at Hashrocket has years of experience working with Ruby applications of all types and sizes. We're an active presence at Ruby conferences, have written some of the most popular gems, and have worked on many of the web's Ruby on Rails success stories. Contact us today to talk about your Ruby project.