Class: Inch::Rake::Suggest

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

Overview

Provides Rake task integration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = 'inch', *args, &block) ⇒ 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

#argsArray



15
16
17
# File 'lib/inch/rake/suggest.rb', line 15

def args
  @args
end

#nameString



13
14
15
# File 'lib/inch/rake/suggest.rb', line 13

def name
  @name
end

Instance Method Details

#suggestvoid



30
31
32
# File 'lib/inch/rake/suggest.rb', line 30

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