Method: Inch::Rake::Suggest#initialize

Defined in:
lib/inch/rake/suggest.rb

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

Returns a new instance of Suggest.

Parameters:

  • name (String) (defaults to: 'inch')

    name of the Rake task

  • *args (Array)

    arguments to be passed to Suggest.run

  • &block (Proc)

    optional, evaluated inside the task definition



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