Class: ClosingComments::Processor::Fixer
- Inherits:
-
Reporter
- Object
- ClosingComments::Processor
- Reporter
- ClosingComments::Processor::Fixer
- Defined in:
- lib/closing_comments/processor.rb
Overview
class Reporter
Instance Method Summary collapse
-
#handle(source) ⇒ Object
This method reeks of :reek:FeatureEnvy.
Methods inherited from Reporter
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 |