RubyGems and RDoc

Is it possible to set RDoc options, like main and title, in a Gem specification? If so, how?

Thanks for the info.

James Edward Gray II

James Edward Gray II wrote:

Is it possible to set RDoc options, like main and title, in a Gem
specification? If so, how?

Like so:

spec.rdoc_options << '--title' << 'Rake -- Ruby Make' <<
                       '--main' << 'README' <<
                       '--line-numbers'

Taken from:
http://rubygems.rubyforge.org/wiki/wiki.pl?GemspecReference

HTH,
Assaph

I was hunting all over the wiki for that exact link, but just kept running into the much less helpful:

http://rubygems.rubyforge.org/wiki/wiki.pl?GemSpecification

Thanks a ton.

James Edward Gray II

···

On Apr 28, 2005, at 7:39 PM, Assaph Mehr wrote:

James Edward Gray II wrote:

Is it possible to set RDoc options, like main and title, in a Gem
specification? If so, how?

Like so:

spec.rdoc_options << '--title' << 'Rake -- Ruby Make' <<
                       '--main' << 'README' <<
                       '--line-numbers'

Taken from:
http://rubygems.rubyforge.org/wiki/wiki.pl?GemspecReference