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
···
--
Robert
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
···
On Jun 16, 2004, at 9:23, Robert Oschler wrote:
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.
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
···
On Jun 16, 2004, at 5:48 PM, Dave Thomas wrote:
On Jun 16, 2004, at 9:23, Robert Oschler wrote:
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)
If you use a recent 1.9 install, you won't have to worry about this: the install does it for you.
Cheers
Dave
···
On Jun 18, 2004, at 12:24, Kevin Bullock wrote:
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.