Class: RubocopTodoCorrector::Commands::Remove
- Inherits:
-
Object
- Object
- RubocopTodoCorrector::Commands::Remove
- Defined in:
- lib/rubocop_todo_corrector/commands/remove.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ String
-
#initialize(cop_name:, rubocop_todo_path:) ⇒ Remove
constructor
A new instance of Remove.
Constructor Details
#initialize(cop_name:, rubocop_todo_path:) ⇒ Remove
Returns a new instance of Remove.
22 23 24 25 26 27 28 |
# File 'lib/rubocop_todo_corrector/commands/remove.rb', line 22 def initialize( cop_name:, rubocop_todo_path: ) @cop_name = cop_name @rubocop_todo_path = rubocop_todo_path end |
Class Method Details
.call(cop_name:, rubocop_todo_path:) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/rubocop_todo_corrector/commands/remove.rb', line 11 def call( cop_name:, rubocop_todo_path: ) new( cop_name:, rubocop_todo_path: ).call end |
Instance Method Details
#call ⇒ String
31 32 33 34 |
# File 'lib/rubocop_todo_corrector/commands/remove.rb', line 31 def call check_rubocop_todo_existence write end |