Class: Simplabs::Excellent::Rake::ExcellentTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Simplabs::Excellent::Rake::ExcellentTask
- Defined in:
- lib/simplabs/excellent/rake/excellent_task.rb
Overview
A special rake task for Excellent.
Instance Attribute Summary collapse
-
#html ⇒ Object
Specifies whether to output HTML; defaults to false.
-
#name ⇒ Object
The Name of the task, defaults to
:excellent
. -
#paths ⇒ Object
The paths to process (specify file names or directories; will recursively process all ruby files if a directory is given).
Instance Method Summary collapse
-
#initialize(name = :excellent) {|_self| ... } ⇒ ExcellentTask
constructor
Initializes an ExcellentTask with the name
name
.
Constructor Details
#initialize(name = :excellent) {|_self| ... } ⇒ ExcellentTask
Initializes an ExcellentTask with the name name
.
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
#html ⇒ Object
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 |
#name ⇒ Object
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 |
#paths ⇒ Object
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 |