Forum: Ruby on Rails extend doc:app rake task to Include lib/*?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1843b506d589247217d2d1e85add8336?d=identicon&s=25 Tony Buser (gr0k)
on 2006-04-19 00:17
(Received via mailing list)
I've never really done much with rake and I'm trying to figure out how
to add some options to the doc:app task.  For instance I'd like to
include documentation for files in the lib directory.  I can't seem to
figure out the proper way to do it short of changing the
lib/tasks/documentation.rake in the rails distribution.  After poking
around in the rails tasks, I tried creating an extended_docapp.rake in
my lib/tasks that contains this:

namespace :doc do
  task :app do |rdoc|
    rdoc.rdoc_files.include('lib/*.rb')
  end
end

But when I run rake doc:app I get this error:

rake aborted!
undefined method `rdoc_files' for #<Rake::Task:0x2299c00>

I guess I'm not referencing the task correctly?  I don't want to
overwrite the task, just want to add that option.  I can't seem to
find any documentation on extending the built in rails tasks.  Is it
possible to do what I'm trying to do and whats the proper way?
This topic is locked and can not be replied to.