lib/inch/rake/suggest.rb in inch-0.1.3 vs lib/inch/rake/suggest.rb in inch-0.1.4
- old
+ new
@@ -7,9 +7,12 @@
module Rake
class Suggest < ::Rake::TaskLib
attr_accessor :name
attr_accessor :args
+ # @param name [String] name of the Rake task
+ # @param *args [Array] arguments to be passed to Suggest.run
+ # @param &block [Proc] optional, evaluated inside the task definition
def initialize(name = "inch", *args, &block)
@name = name
@args = args
block.call(self) if block