Class: Rake::Task
- Inherits:
-
Object
- Object
- Rake::Task
- Defined in:
- lib/hoe/rake.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#plugin ⇒ Object
Used to name the source of a given task.
Instance Method Summary collapse
-
#clear ⇒ Object
:nodoc:.
-
#clear_comments ⇒ Object
:nodoc:.
-
#comment ⇒ Object
Overrides the default #comment to provide the plugin name.
- #old_clear ⇒ Object
-
#old_comment ⇒ Object
:stopdoc:.
Instance Attribute Details
#plugin ⇒ Object
Used to name the source of a given task
4 5 6 |
# File 'lib/hoe/rake.rb', line 4 def plugin @plugin end |
Instance Method Details
#clear ⇒ Object
:nodoc:
17 18 19 20 21 22 |
# File 'lib/hoe/rake.rb', line 17 def clear # :nodoc: clear_prerequisites clear_actions clear_comments self end |
#clear_comments ⇒ Object
:nodoc:
24 25 26 27 28 |
# File 'lib/hoe/rake.rb', line 24 def clear_comments # :nodoc: @full_comment = nil @comment = nil self end |
#comment ⇒ Object
Overrides the default #comment to provide the plugin name.
11 12 13 |
# File 'lib/hoe/rake.rb', line 11 def comment "%-#{$plugin_max}s # %s" % [plugin, old_comment] if old_comment end |
#old_clear ⇒ Object
16 |
# File 'lib/hoe/rake.rb', line 16 alias :old_clear :clear |
#old_comment ⇒ Object
:stopdoc:
6 |
# File 'lib/hoe/rake.rb', line 6 alias :old_comment :comment |