Sha256: 4246b5578ab93777cddaa246b2fb452a0319f6fcfb3a37492c580dc2f2473c17

Contents?: true

Size: 566 Bytes

Versions: 5

Compression:

Stored size: 566 Bytes

Contents

# frozen_string_literal: true

module AnnotateRb
  module ModelAnnotator
    # A plain old Ruby object (PORO) that contains all necessary information for SingleFileAnnotator
    class SingleFileAnnotatorInstruction
      def initialize(file, annotation, position, options = {})
        @file = file # Path to file
        @annotation = annotation # Annotation string
        @position = position # Position in the file where to write the annotation to
        @options = options
      end

      attr_reader :file, :annotation, :position, :options
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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