Class: RubocopTodoCorrector::RubocopTodoSectionParser
- Inherits:
-
Object
- Object
- RubocopTodoCorrector::RubocopTodoSectionParser
- Defined in:
- lib/rubocop_todo_corrector/rubocop_todo_section_parser.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Hash
-
#initialize(content:) ⇒ RubocopTodoSectionParser
constructor
A new instance of RubocopTodoSectionParser.
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
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
#call ⇒ Hash
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 |