How to view the rdocs for gems?

L

Lloyd Zusman

What is the recommended method to view the rdocs for gems that
I have installed? I know that I can go the directory under which a
given gem lives and view the documentation that exists there, but I'm
wondering if there is some other way to view these that doesn't
require the user to know the exact installation directory of each gem.

Ideally, I'd like the user to not even have to know that the docs
pertain to a gem ... in other words, some sort of wrapper around
"ri" that figures out whether a given package is a gem or not, and
then uses the appropriate method to display the docs.

I'm willing to write a script to hide the messy details of this, but I'd
prefer not to re-invent the wheel, if something already exists.

Ideas?

Thanks in advance.
 
A

Austin Ziegler

What is the recommended method to view the rdocs for gems that
I have installed? I know that I can go the directory under which a
given gem lives and view the documentation that exists there, but I'm
wondering if there is some other way to view these that doesn't
require the user to know the exact installation directory of each gem.

gem_server

Browse to that port on localhost. (usually http://127.0.0.1:3000/).

-austin
--=20
Austin Ziegler * (e-mail address removed)
* Alternate: (e-mail address removed)
 
L

Lloyd Zusman

Austin said:
gem_server

Browse to that port on localhost. (usually http://127.0.0.1:3000/).

Thanks. That works fine, and it's quite helpful.

Concerning the second part of my original query: has anyone already
come up with a way to unify the viewing of the gem docs with "ri" or
some other similar utility, so that a user doesn't need to know whether
or not a package is a gem in order to see its docs?

Thanks again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top