Class: Simplabs::Excellent::Rake::ExcellentTask

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/simplabs/excellent/rake/excellent_task.rb

Overview

A special rake task for Excellent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = :excellent) {|_self| ... } ⇒ ExcellentTask

Initializes an ExcellentTask with the name name.

Yields:

  • (_self)

Yield Parameters:



23
24
25
26
27
28
29
# File 'lib/simplabs/excellent/rake/excellent_task.rb', line 23

def initialize(name = :excellent)
  @name  = name
  @paths = nil || []
  @html  = false
  yield self if block_given?
  define
end

Instance Attribute Details

#htmlObject

Specifies whether to output HTML; defaults to false. Assign a file name to output HTML to that file.



17
18
19
# File 'lib/simplabs/excellent/rake/excellent_task.rb', line 17

def html
  @html
end

#nameObject

The Name of the task, defaults to :excellent.



14
15
16
# File 'lib/simplabs/excellent/rake/excellent_task.rb', line 14

def name
  @name
end

#pathsObject

The paths to process (specify file names or directories; will recursively process all ruby files if a directory is given).



20
21
22
# File 'lib/simplabs/excellent/rake/excellent_task.rb', line 20

def paths
  @paths
end