Sha256: 2ca7fa37227ce1e1a0f9104b657884254d7fc1cf2446f8dee53bdf4deb2ed00f
Contents?: true
Size: 306 Bytes
Versions: 88
Compression:
Stored size: 306 Bytes
Contents
# frozen_string_literal: true module Mutant module Range # Test if two ranges overlap # # @param [Range] left # @param [Range] right # # @return [Boolean] def self.overlap?(left, right) left.end >= right.begin && right.end >= left.begin end end # Range end # end
Version data entries
88 entries across 88 versions & 1 rubygems