Class: RuboCop::Gradual::RakeTask

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/rubocop/gradual/rake_task.rb

Overview

Rake tasks for RuboCop::Gradual.

Examples:

require "rubocop/gradual/rake_task"
RuboCop::Gradual::RakeTask.new

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = :rubocop_gradual, *args, &task_block) ⇒ RakeTask

Returns a new instance of RakeTask.



17
18
19
20
21
22
23
# File 'lib/rubocop/gradual/rake_task.rb', line 17

def initialize(name = :rubocop_gradual, *args, &task_block)
  super()
  @name = name
  @verbose = true
  @options = []
  define(args, &task_block)
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



15
16
17
# File 'lib/rubocop/gradual/rake_task.rb', line 15

def name
  @name
end

#optionsObject

Returns the value of attribute options.



15
16
17
# File 'lib/rubocop/gradual/rake_task.rb', line 15

def options
  @options
end

#verboseObject

Returns the value of attribute verbose.



15
16
17
# File 'lib/rubocop/gradual/rake_task.rb', line 15

def verbose
  @verbose
end