Sha256: e8374aa044f30ad1e7361738f63d6c99f106a03ccafd69a76f924e8e4cc3a121

Contents?: true

Size: 799 Bytes

Versions: 7

Compression:

Stored size: 799 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 Agent
    module Assess
      # This is just a helper method for doing things in
      # Assess. It'll hold the start and end indexes of a
      # range on which we will take an action.
      #
      # It is essentially a range, but start and stop can
      # be set after initialization.
      #
      # Note: Unlike ranges, it is assumed that the stop
      # value is exclusive, not inclusive. [start, end)
      class AdjustedSpan
        attr_accessor :start, :stop
        def initialize start = nil, stop = nil
          @start = start if start
          @stop = stop if stop
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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