Sha256: ecb5f4ae702eab1654d8f54e8d04488ca972926525c5307f75681c521e4b76f6

Contents?: true

Size: 590 Bytes

Versions: 5

Compression:

Stored size: 590 Bytes

Contents

# frozen_string_literal: true

module AnnotateRb
  module ModelAnnotator
    class Annotator
      class << self
        def do_annotations(options = {})
          new(options).do_annotations
        end

        def remove_annotations(options = {})
          new(options).remove_annotations
        end
      end

      def initialize(options)
        @options = options
      end

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
annotaterb-4.4.1 lib/annotate_rb/model_annotator/annotator.rb
annotaterb-4.4.0 lib/annotate_rb/model_annotator/annotator.rb
annotaterb-4.3.1 lib/annotate_rb/model_annotator/annotator.rb
annotaterb-4.3.0 lib/annotate_rb/model_annotator/annotator.rb
annotaterb-4.2.0 lib/annotate_rb/model_annotator/annotator.rb