Class: Rake::SDocTask

Inherits:
RDocTask
  • Object
show all
Defined in:
lib/rake/sdoctask.rb

Overview

Just a customized version of the normal RDoc task for generating SDocs.

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ SDocTask

Returns a new instance of SDocTask.

Yields:

  • (_self)

Yield Parameters:



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/rake/sdoctask.rb', line 6

def initialize
  @name = :rdoc
  @rdoc_files = Rake::FileList.new
  @rdoc_files.include('README*')
  @rdoc_files.include('LICENSE*')
  @rdoc_files.include('lib/**/*.rb')
  @rdoc_dir = 'docs'
  @main = Dir['README*'].first
  @title = nil
  @template = 'sdoc'
  @external = false
  @inline_source = true
  @options = ['--fmt', 'shtml']
  yield self if block_given?
  define
end