Sha256: f46bd8790e1957c2038523b0cc45064d26602d6d94c41b195b09825aefc8a6af

Contents?: true

Size: 477 Bytes

Versions: 32

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true

require_relative '../../../../../puppet/util/package/version/range'

module Puppet::Util::Package::Version
  class Range
    class MinMax
      def initialize(min, max)
        @min = min
        @max = max
      end

      def to_s
        "#{@min} #{@max}"
      end

      def to_gem_version
        "#{@min}, #{@max}"
      end

      def include?(version)
        @min.include?(version) && @max.include?(version)
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
puppet-8.10.0 lib/puppet/util/package/version/range/min_max.rb
puppet-8.10.0-x86-mingw32 lib/puppet/util/package/version/range/min_max.rb
puppet-8.10.0-x64-mingw32 lib/puppet/util/package/version/range/min_max.rb
puppet-8.10.0-universal-darwin lib/puppet/util/package/version/range/min_max.rb
puppet-8.9.0 lib/puppet/util/package/version/range/min_max.rb
puppet-8.9.0-x86-mingw32 lib/puppet/util/package/version/range/min_max.rb
puppet-8.9.0-x64-mingw32 lib/puppet/util/package/version/range/min_max.rb
puppet-8.9.0-universal-darwin lib/puppet/util/package/version/range/min_max.rb
puppet-8.8.1 lib/puppet/util/package/version/range/min_max.rb
puppet-8.8.1-x86-mingw32 lib/puppet/util/package/version/range/min_max.rb
puppet-8.8.1-x64-mingw32 lib/puppet/util/package/version/range/min_max.rb
puppet-8.8.1-universal-darwin lib/puppet/util/package/version/range/min_max.rb
puppet-8.7.0 lib/puppet/util/package/version/range/min_max.rb
puppet-8.7.0-x86-mingw32 lib/puppet/util/package/version/range/min_max.rb
puppet-8.7.0-x64-mingw32 lib/puppet/util/package/version/range/min_max.rb
puppet-8.7.0-universal-darwin lib/puppet/util/package/version/range/min_max.rb
puppet-8.6.0 lib/puppet/util/package/version/range/min_max.rb
puppet-8.6.0-x86-mingw32 lib/puppet/util/package/version/range/min_max.rb
puppet-8.6.0-x64-mingw32 lib/puppet/util/package/version/range/min_max.rb
puppet-8.6.0-universal-darwin lib/puppet/util/package/version/range/min_max.rb