require 'rake' require 'rake/clean' require 'rake/tasklib' module Rake module Leaves class DoxygenTask < TaskLib attr_accessor :config def initialize() @config = 'Doxyfile' yield self if block_given? define end def define desc "Generate documentation using Doxygen." task :doc do sh "doxygen #{@config}" end self end end end end