Sha256: ff7b1b9c4d4c1f186293d38765ae18a9858198eb2b711ff7080269bc9e85632e

Contents?: true

Size: 561 Bytes

Versions: 10

Compression:

Stored size: 561 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

10 entries across 10 versions & 1 rubygems

Version Path
annotaterb-4.13.0 lib/annotate_rb/model_annotator/single_file_annotator_instruction.rb
annotaterb-4.12.0 lib/annotate_rb/model_annotator/single_file_annotator_instruction.rb
annotaterb-4.11.0 lib/annotate_rb/model_annotator/single_file_annotator_instruction.rb
annotaterb-4.10.2 lib/annotate_rb/model_annotator/single_file_annotator_instruction.rb
annotaterb-4.10.1 lib/annotate_rb/model_annotator/single_file_annotator_instruction.rb
annotaterb-4.10.0 lib/annotate_rb/model_annotator/single_file_annotator_instruction.rb
annotaterb-4.9.0 lib/annotate_rb/model_annotator/single_file_annotator_instruction.rb
annotaterb-4.7.0 lib/annotate_rb/model_annotator/single_file_annotator_instruction.rb
annotaterb-4.6.0 lib/annotate_rb/model_annotator/single_file_annotator_instruction.rb
annotaterb-4.5.0 lib/annotate_rb/model_annotator/single_file_annotator_instruction.rb