class ClosingComments::Processor
Attributes
reportables[R]
Public Class Methods
new()
click to toggle source
# File lib/closing_comments/processor.rb, line 5 def initialize @reportables = {} end
Public Instance Methods
process(path:)
click to toggle source
TODO(marcinw): catch parsing errors;
# File lib/closing_comments/processor.rb, line 10 def process(path:) source = Source.from(path: path) handle(source) @reportables[path] = source if source.problematic? end
success?()
click to toggle source
# File lib/closing_comments/processor.rb, line 16 def success? @reportables.empty? end