This post originated from an RSS feed registered with Ruby Buzz
by Eric Hodel.
Original Post: RDoc 2.1.0
Feed Title: Segment7
Feed URL: http://blog.segment7.net/articles.rss
Feed Description: Posts about and around Ruby, MetaRuby, ruby2c, ZenTest and work at The Robot Co-op.
RDoc is an application that produces documentation for one or more Ruby
source files. RDoc includes the `rdoc` and `ri` tools for generating and
displaying online documentation.
At this point in time, RDoc 2.x is a work in progress and may incur further
API changes beyond what has been made to the RDoc 1.0.1. Command-line tools
are largely unaffected, but internal APIs may shift rapidly.
3 Major Enhancements:
RDoc now knows about meta-programmed methods, see RDoc::Parser::Ruby
Reorganized parsers under RDoc::Parser base class
ri now walks the ancestors of a class looking for a method e.g. ri
File#read displays documentation for IO#read (may require regeneration of
ri data)
5 Minor Enhancements:
Allow links to files
Default options now taken from RDOCOPT environment variable
Class method documentation can be found at toplevel now (def X.foo)
Allow HTML templates distributed as gems to be loaded with the -T option,
just like the standard templates in rdoc/generator/html (so an HTML
template lib/new_template.rb in a gem can be used with rdoc -T
new_template)
`rdoc -v` prints out files, classes, modules and methods as it goes
11 Bug Fixes:
`ri Foo.bar` now looks for class methods also
Sections work in the default template again
Doesn’t warn about :foo:: list item being an unrecognized directive