Class: AnnotateRb::RouteAnnotator::AnnotationProcessor
- Inherits:
-
BaseProcessor
- Object
- BaseProcessor
- AnnotateRb::RouteAnnotator::AnnotationProcessor
- Defined in:
- lib/annotate_rb/route_annotator/annotation_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/annotation_processor.rb', line 9 def execute if routes_file_exist? if update "#{routes_file} was annotated." else "#{routes_file} was not changed." end else "#{routes_file} could not be found." end end |