Class: Docquet::RakeTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Docquet::RakeTask
- Defined in:
- lib/docquet/rake_task.rb
Instance Method Summary collapse
-
#initialize ⇒ RakeTask
constructor
A new instance of RakeTask.
Constructor Details
#initialize ⇒ RakeTask
Returns a new instance of RakeTask.
33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/docquet/rake_task.rb', line 33 def initialize super @inflector = Inflector.instance @plugin_gem_names = PluginDetector.detect_plugin_gem_names departments = RuboCop::Cop::Registry.global.map {|c| c.department.to_s } departments.sort! departments.uniq! @departments = departments define_tasks end |