Anons79 Mini Shell

Directory : /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/package/version/range/
Upload File :
Current File : //opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/package/version/range/min_max.rb

require '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

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]