Class: Puppet::Util::Package::Version::Range::MinMax Private
- Defined in:
- lib/puppet/util/package/version/range/min_max.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #include?(version) ⇒ Boolean private
-
#initialize(min, max) ⇒ MinMax
constructor
private
A new instance of MinMax.
- #to_gem_version ⇒ Object private
- #to_s ⇒ Object private
Constructor Details
#initialize(min, max) ⇒ MinMax
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of MinMax.
7 8 9 10 |
# File 'lib/puppet/util/package/version/range/min_max.rb', line 7 def initialize(min, max) @min = min @max = max end |
Instance Method Details
#include?(version) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 |
# File 'lib/puppet/util/package/version/range/min_max.rb', line 17 def include?(version) @min.include?(version) && @max.include?(version) end |
#to_gem_version ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
14 15 16 |
# File 'lib/puppet/util/package/version/range/min_max.rb', line 14 def to_gem_version "#{@min}, #{@max}" end |
#to_s ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'lib/puppet/util/package/version/range/min_max.rb', line 11 def to_s "#{@min} #{@max}" end |