Class: AnnotateRb::RouteAnnotator::RemovalProcessor
- Inherits:
-
BaseProcessor
- Object
- BaseProcessor
- AnnotateRb::RouteAnnotator::RemovalProcessor
- Defined in:
- lib/annotate_rb/route_annotator/removal_processor.rb
Overview
This class is abstract class of classes adding and removing annotation to config/routes.rb.
Instance Method Summary collapse
Methods inherited from BaseProcessor
execute, #initialize, #routes_file_exist?, #update
Constructor Details
This class inherits a constructor from AnnotateRb::RouteAnnotator::BaseProcessor
Instance Method Details
#execute ⇒ String
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/annotate_rb/route_annotator/removal_processor.rb', line 9 def execute if routes_file_exist? if update "Annotations were removed from #{routes_file}." else "#{routes_file} was not changed (Annotation did not exist)." end else "#{routes_file} could not be found." end end |