RDoc- Merging docs, ri <filename>

  • Thread starter Nicholas Van Weerdenburg
  • Start date
N

Nicholas Van Weerdenburg

Hi,

I have a couple of RDoc questions:

1. is there a way to generate rdoc so you can do "rdoc <filename>. I
often remember the require filename (e.g. require "log4r") but forget
the class names.

2. can rdoc merge multiple sources of documentation? e.g. if I open a
class and add new members in a second ruby file, I might want the
comments added to the main files rdoc (ideally with an appropriate
header "customerString.rb Additions:" or like).

Thanks,
Nick
 
D

Dave Thomas

1. is there a way to generate rdoc so you can do "rdoc <filename>. I
often remember the require filename (e.g. require "log4r") but forget
the class names.

If you use the web interface (lloking at the HTML) it shows you the
file names, and you can click on them. ri doesn't support this.
2. can rdoc merge multiple sources of documentation? e.g. if I open a
class and add new members in a second ruby file, I might want the
comments added to the main files rdoc (ideally with an appropriate
header "customerString.rb Additions:" or like).

When generating ri output, rdoc merges descriptions. Whren generating
html, it work, but only if you supply all the sources of the
information at the same time (ie go rdoc file1.rb file2.rb)


Cheers

Dave
 
N

Nicholas Van Weerdenburg

Ooops. Meant "ri said:
If you use the web interface (lloking at the HTML) it shows you the
file names, and you can click on them. ri doesn't support this.


When generating ri output, rdoc merges descriptions. Whren generating
html, it work, but only if you supply all the sources of the
information at the same time (ie go rdoc file1.rb file2.rb)

Cheers

Dave

Thanks. I'll try that.
 

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
474,164
Messages
2,570,898
Members
47,439
Latest member
shasuze

Latest Threads

Top