Show the doc task with rake -T.

This commit is contained in:
Nathan Weizenbaum 2009-06-07 13:14:05 -07:00
parent 8da2c376ac
commit b4d9aff33a
1 changed files with 3 additions and 0 deletions

View File

@ -145,9 +145,12 @@ begin
list.exclude('TODO')
end.to_a.join(',')
end
Rake::Task['yardoc'].instance_variable_set('@comment', nil)
desc "Generate Documentation"
task :doc => :yardoc
rescue LoadError
desc "Generate Documentation"
task :doc => :rdoc
task :yardoc => :rdoc
end