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