Problem with "ri"

R

Robert Oschler

Hello,

I ran "ri" on my Linux box last night, from my user home directory. It
crunched away at a bunch of .c and .rb files for quite some time. When it
was done, I still couldn't get doc-info on Ruby's built-in commands. For
example "ri each_with_index" or "ri puts" came up with a response from ri
saying it didn't know anything about them.

What did I do wrong and how can I fix it?

Thanks
 
D

Dave Thomas

Hello,

I ran "ri" on my Linux box last night, from my user home directory. It
crunched away at a bunch of .c and .rb files for quite some time.
When it
was done, I still couldn't get doc-info on Ruby's built-in commands.
For
example "ri each_with_index" or "ri puts" came up with a response from
ri
saying it didn't know anything about them.

Presumably you ran rdoc on the files in your home directory. These will
be the files that it documented. If you want Ruby's built-in stuff as
well, you'll also need to run rdoc --ri in the Ruby source tree (note:
not in the library)


Cheers

Dave
 
K

Kevin Bullock

Presumably you ran rdoc on the files in your home directory. These
will be the files that it documented. If you want Ruby's built-in
stuff as well, you'll also need to run rdoc --ri in the Ruby source
tree (note: not in the library)

Putting a note to this effect on the Web pages that describe rdoc and
ri might be useful. It took me a while and a lot of context clues to
figure this out.

Pacem in terris / Mir / Shanti / Salaam / Heiwa
Kevin R. Bullock
 
D

Dave Thomas

Putting a note to this effect on the Web pages that describe rdoc and
ri might be useful. It took me a while and a lot of context clues to
figure this out.

If you use a recent 1.9 install, you won't have to worry about this:
the install does it for you.


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
474,147
Messages
2,570,833
Members
47,380
Latest member
AlinaBlevi

Latest Threads

Top