Class: AnnotateRb::ModelAnnotator::Annotator

Inherits:
Object
  • Object
show all
Defined in:
lib/annotate_rb/model_annotator/annotator.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Annotator

Returns a new instance of Annotator.



16
17
18
# File 'lib/annotate_rb/model_annotator/annotator.rb', line 16

def initialize(options)
  @options = options
end

Class Method Details

.do_annotations(options) ⇒ Object



7
8
9
# File 'lib/annotate_rb/model_annotator/annotator.rb', line 7

def do_annotations(options)
  new(options).do_annotations
end

.remove_annotations(options) ⇒ Object



11
12
13
# File 'lib/annotate_rb/model_annotator/annotator.rb', line 11

def remove_annotations(options)
  new(options).remove_annotations
end

Instance Method Details

#do_annotationsObject



20
21
22
# File 'lib/annotate_rb/model_annotator/annotator.rb', line 20

def do_annotations
  ProjectAnnotator.new(@options).annotate
end

#remove_annotationsObject



24
25
26
# File 'lib/annotate_rb/model_annotator/annotator.rb', line 24

def remove_annotations
  ProjectAnnotationRemover.new(@options).remove_annotations
end