Sha256: 9232a2cf166733bc6a84b8d3129fc097cfd2cd4cc7715f4cf2afb4829dcfee3c
Contents?: true
Size: 729 Bytes
Versions: 1
Compression:
Stored size: 729 Bytes
Contents
require 'rake' require 'rake/clean' require 'rake/tasklib' module Rake module Leaves class HeaderDocTask < TaskLib attr_accessor :files attr_accessor :output def initialize() @files = Rake::FileList.new('./include') @output = './doc' yield self if block_given? define end def define desc "Generate documentation using HeaderDoc." task :doc do @files.each do |file| sh "headerdoc2html -o #{@output} #{file}" end sh "gatherheaderdoc #{@output}" end task :clobber_doc do rm_r @output rescue nil end task :clobber => [:clobber_doc] self end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
leaves-0.1.0 | lib/leaves/doc/headerdoc.rb |