Class: Inch::Rake::Suggest
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Inch::Rake::Suggest
- Defined in:
- lib/inch/rake/suggest.rb
Overview
Provides Rake task integration
Instance Attribute Summary collapse
-
#args ⇒ Array
Arguments to be passed to Suggest.run.
-
#name ⇒ String
Name of the Rake task.
Instance Method Summary collapse
-
#initialize(name = 'inch', *args, &block) ⇒ Suggest
constructor
A new instance of Suggest.
- #suggest ⇒ void
Constructor Details
#initialize(name = 'inch', *args, &block) ⇒ Suggest
Returns a new instance of Suggest.
20 21 22 23 24 25 26 27 |
# File 'lib/inch/rake/suggest.rb', line 20 def initialize(name = 'inch', *args, &block) @name = name @args = args block.call(self) if block desc 'Suggest objects to add documention to' task(@name) { suggest } end |
Instance Attribute Details
#args ⇒ Array
Returns arguments to be passed to Suggest.run.
15 16 17 |
# File 'lib/inch/rake/suggest.rb', line 15 def args @args end |
#name ⇒ String
Returns name of the Rake task.
13 14 15 |
# File 'lib/inch/rake/suggest.rb', line 13 def name @name end |