Sha256: a8b8c22678c572da3edb8459135807f7e3a1609397ba25bbb4879e748054bddf

Contents?: true

Size: 554 Bytes

Versions: 2

Compression:

Stored size: 554 Bytes

Contents

# frozen_string_literal: true

module AnnotateRb
  module ModelAnnotator
    # A plain old Ruby object (PORO) that contains all necessary information for FileAnnotator
    class FileAnnotatorInstruction
      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

2 entries across 2 versions & 1 rubygems

Version Path
annotaterb-4.1.1 lib/annotate_rb/model_annotator/file_annotator_instruction.rb
annotaterb-4.1.0 lib/annotate_rb/model_annotator/file_annotator_instruction.rb