Sha256: cf5bd43a2bd24c515428e4597ee73fa20bc2633ba24d58ea4eb5dca03c56f728
Contents?: true
Size: 1.4 KB
Versions: 2
Compression:
Stored size: 1.4 KB
Contents
# frozen_string_literal: true module AnnotateRb module ModelAnnotator module FileParser class ParsedFileResult def initialize( has_annotations:, has_skip_string:, annotations_changed:, annotations:, annotations_with_whitespace:, has_leading_whitespace:, has_trailing_whitespace:, annotation_position: ) @has_annotations = has_annotations @has_skip_string = has_skip_string @annotations_changed = annotations_changed @annotations = annotations @annotations_with_whitespace = annotations_with_whitespace @has_leading_whitespace = has_leading_whitespace @has_trailing_whitespace = has_trailing_whitespace @annotation_position = annotation_position end attr_reader :annotations, :annotation_position # Returns annotations with new line before and after if they exist attr_reader :annotations_with_whitespace def annotations_changed? @annotations_changed end def has_annotations? @has_annotations end def has_skip_string? @has_skip_string end def has_leading_whitespace? @has_leading_whitespace end def has_trailing_whitespace? @has_trailing_whitespace end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
annotaterb-4.7.0 | lib/annotate_rb/model_annotator/file_parser/parsed_file_result.rb |
annotaterb-4.6.0 | lib/annotate_rb/model_annotator/file_parser/parsed_file_result.rb |