Class: ClosingComments::Processor::Fixer

Inherits:
Reporter show all
Defined in:
lib/closing_comments/processor.rb

Overview

class Reporter

Instance Method Summary collapse

Methods inherited from Reporter

#report

Methods inherited from ClosingComments::Processor

#initialize, #process, #success?

Constructor Details

This class inherits a constructor from ClosingComments::Processor

Instance Method Details

#handle(source) ⇒ Object

This method reeks of :reek:FeatureEnvy.



53
54
55
56
57
# File 'lib/closing_comments/processor.rb', line 53

def handle(source)
  return super unless source.problematic?
  File.write(source.path, source.fix)
  print 'A'.yellow
end