James Britt
2/12/2005 1:03:00 AM
Dick Davies wrote:
> Just a quick check, really:
>
> is there any way to have ri pick up the rdoc of installed third-party
> packages?
Yes, but.
You can run rdoc -[R|r|Y] on any installed code, and it will create the
ri data files corresponding to the rdoc for that code.
The 'but' is that the integration between built-in classes and other
code is not always smooth. If the code, for example, extends String,
then those new methods will end up as part of the core String ri.
There may be ways around this, but my experience trying to add the
standard lib to ri caused all sorts of ri issues.
>
> It's the one thing I feel ruby is lacking at the moment.
> (I'm about to go grepping for require_dependency through all my rails
> libs to override it and wish I could just do 'ri require_dependency'
> to find out what class/module defines it).
If you installed Rails via rubygems you should have rdoc documentation
viewable through rubygem's built-in 'gem_server' app. You could also
view the docs directly in the gems/docs dir.
James Britt