Class: RubocopTodoCorrector::RubocopTodoSectionParser

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content:) ⇒ RubocopTodoSectionParser

Returns a new instance of RubocopTodoSectionParser.



14
15
16
# File 'lib/rubocop_todo_corrector/rubocop_todo_section_parser.rb', line 14

def initialize(content:)
  @content = content
end

Class Method Details

.call(content:) ⇒ Object

Parameters:



7
8
9
10
11
# File 'lib/rubocop_todo_corrector/rubocop_todo_section_parser.rb', line 7

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

Instance Method Details

#callHash

Returns:



19
20
21
22
23
24
25
26
# File 'lib/rubocop_todo_corrector/rubocop_todo_section_parser.rb', line 19

def call
  {
    auto_correctable:,
    name:,
    offenses_count:,
    safe_auto_correctable:
  }
end