Method: AnnotateRb::ModelAnnotator::FileComponents#initialize

Defined in:
lib/annotate_rb/model_annotator/file_components.rb

#initialize(file_content, new_annotations, options) ⇒ FileComponents

Returns a new instance of FileComponents.



11
12
13
14
15
16
17
# File 'lib/annotate_rb/model_annotator/file_components.rb', line 11

def initialize(file_content, new_annotations, options)
  @file_content = file_content
  @diff = AnnotationDiffGenerator.new(file_content, new_annotations).generate
  @options = options
  @annotation_pattern = AnnotationPatternGenerator.call(options)
  @new_annotations = new_annotations
end