Class: RubocopTodoCorrector::GemNamesDetector

Inherits:
Object
  • Object
show all
Defined in:
lib/rubocop_todo_corrector/gem_names_detector.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rubocop_configuration_path:) ⇒ GemNamesDetector

Returns a new instance of GemNamesDetector.



15
16
17
# File 'lib/rubocop_todo_corrector/gem_names_detector.rb', line 15

def initialize(rubocop_configuration_path:)
  @rubocop_configuration_path = rubocop_configuration_path
end

Class Method Details

.call(rubocop_configuration_path:) ⇒ Array<String>

Parameters:

  • rubocop_configuration_path (String)

Returns:

  • (Array<String>)


10
11
12
# File 'lib/rubocop_todo_corrector/gem_names_detector.rb', line 10

def call(rubocop_configuration_path:)
  new(rubocop_configuration_path:).call
end

Instance Method Details

#callObject



19
20
21
# File 'lib/rubocop_todo_corrector/gem_names_detector.rb', line 19

def call
  gem_names
end