Class: RuboCop::Gradual::RakeTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- RuboCop::Gradual::RakeTask
- Defined in:
- lib/rubocop/gradual/rake_task.rb
Overview
Rake tasks for RuboCop::Gradual.
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
Instance Method Summary collapse
-
#initialize(name = :rubocop_gradual, *args, &task_block) ⇒ RakeTask
constructor
A new instance of RakeTask.
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
#name ⇒ Object
Returns the value of attribute name.
15 16 17 |
# File 'lib/rubocop/gradual/rake_task.rb', line 15 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
15 16 17 |
# File 'lib/rubocop/gradual/rake_task.rb', line 15 def @options end |
#verbose ⇒ Object
Returns the value of attribute verbose.
15 16 17 |
# File 'lib/rubocop/gradual/rake_task.rb', line 15 def verbose @verbose end |