Class: RuboCop::Cop::Rubomatic::Generator::CopReadmeInjector
- Inherits:
-
DeptReadmeInjector
- Object
- DeptReadmeInjector
- RuboCop::Cop::Rubomatic::Generator::CopReadmeInjector
- Defined in:
- lib/rubocop/cop/rubomatic/generator/cop_readme_injector.rb
Constant Summary collapse
- TEMPLATE =
'* xref:./%{cop_folder}/README.adoc[``%{department}/%{cop}``]'
Instance Method Summary collapse
-
#initialize(badge:, **kwargs) ⇒ CopReadmeInjector
constructor
:nodoc:.
Methods inherited from DeptReadmeInjector
Constructor Details
#initialize(badge:, **kwargs) ⇒ CopReadmeInjector
:nodoc:
12 13 14 15 16 |
# File 'lib/rubocop/cop/rubomatic/generator/cop_readme_injector.rb', line 12 def initialize(badge:, **kwargs) super(badge: badge, **kwargs) @cop = badge.cop_name end |