ri path?

P

Patrick Gundlach

Dear ruby users,

Q: how do I tell ri to look in a different path then ~/.rdoc ?



I create documentation via

rdoc -r -o /tmp/rdoc

and I'd like to acces it with ri, but I can't find out how to tell ri
that it shouldn't look in ~/.rdoc.

pg$ ri --help

alpha 0.1

the following arguments are accepted by ri:

-f (format), -T, -w (width)

but no -p path or whatever.


Patrick
 
D

Dave Thomas

Dear ruby users,

Q: how do I tell ri to look in a different path then ~/.rdoc ?
....

pg$ ri --help

alpha 0.1

That's a very, very old ri, and one that doesn't work with rdoc (as far
as I remember). You need the ri out of a more recent Ruby distribution.
That accepts a --doc-dir parameter, and honors the RI environment
variable, which may be used to set defaults for arbitrary parameters.

Cheers

Dave
 

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

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,233
Latest member
AlyssaCrai

Latest Threads

Top