Sha256: 36925338ee1ccc9a623583626c54ed0cf4cc3c1778b912a6773085b9f984316f

Contents?: true

Size: 462 Bytes

Versions: 7

Compression:

Stored size: 462 Bytes

Contents

# Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true

module Contrast
  module Utils
    # Stores the range of a comment
    class CommentRange
      COMMENT_START = /<!--/.cs__freeze
      COMMENT_END = '-->'

      attr_reader :open, :close

      def initialize open_idx, close_idx
        @open = open_idx
        @close = close_idx
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
contrast-agent-3.10.2 lib/contrast/utils/comment_range.rb
contrast-agent-3.10.1 lib/contrast/utils/comment_range.rb
contrast-agent-3.10.0 lib/contrast/utils/comment_range.rb
contrast-agent-3.9.1 lib/contrast/utils/comment_range.rb
contrast-agent-3.9.0 lib/contrast/utils/comment_range.rb
contrast-agent-3.8.5 lib/contrast/utils/comment_range.rb
contrast-agent-3.8.4 lib/contrast/utils/comment_range.rb