Class: Inch::Rake::Suggest

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/inch/rake/suggest.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = "inch", *args, &block) ⇒ Suggest

Returns a new instance of Suggest.



12
13
14
15
16
17
18
19
# File 'lib/inch/rake/suggest.rb', line 12

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

#argsObject

Returns the value of attribute args.



10
11
12
# File 'lib/inch/rake/suggest.rb', line 10

def args
  @args
end

#nameObject

Returns the value of attribute name.



9
10
11
# File 'lib/inch/rake/suggest.rb', line 9

def name
  @name
end

Instance Method Details

#suggestObject



21
22
23
# File 'lib/inch/rake/suggest.rb', line 21

def suggest
  CLI::Command::Suggest.run(*@args)
end