Class: Inch::Rake::Suggest
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Inch::Rake::Suggest
- Defined in:
- lib/inch/rake/suggest.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name = "inch", *args, &block) ⇒ Suggest
constructor
A new instance of Suggest.
- #suggest ⇒ Object
Constructor Details
#initialize(name = "inch", *args, &block) ⇒ Suggest
Returns a new instance of Suggest.
16 17 18 19 20 21 22 23 |
# File 'lib/inch/rake/suggest.rb', line 16 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 ⇒ Object
Returns the value of attribute args.
11 12 13 |
# File 'lib/inch/rake/suggest.rb', line 11 def args @args end |
#name ⇒ Object
Returns the value of attribute name.
10 11 12 |
# File 'lib/inch/rake/suggest.rb', line 10 def name @name end |