Class: SemanticPuppet::VersionRange::LtRange Private
- Inherits:
-
ComparatorRange
- Object
- AbstractRange
- ComparatorRange
- SemanticPuppet::VersionRange::LtRange
- Defined in:
- lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/version_range.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.
Constant Summary collapse
- MATCH_NOTHING =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
LtRange.new(Version::MIN)
Instance Attribute Summary
Attributes inherited from ComparatorRange
Instance Method Summary collapse
- #end ⇒ Object private
- #exclude_end? ⇒ Boolean private
- #include?(version) ⇒ Boolean private
- #to_s ⇒ Object private
- #upper_bound? ⇒ Boolean private
Methods inherited from ComparatorRange
#eql?, #hash, #initialize, #stable?, #test_prerelease?
Methods inherited from AbstractRange
#==, #begin, #eql?, #exclude_begin?, #intersection, #lower_bound?, #merge, #stable?, #test_prerelease?
Constructor Details
This class inherits a constructor from SemanticPuppet::VersionRange::ComparatorRange
Instance Method Details
#end ⇒ 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.
695 696 697 |
# File 'lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/version_range.rb', line 695 def end @version end |
#exclude_end? ⇒ 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.
691 692 693 |
# File 'lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/version_range.rb', line 691 def exclude_end? true end |
#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.
687 688 689 |
# File 'lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/version_range.rb', line 687 def include?(version) version < @version 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.
703 704 705 |
# File 'lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/version_range.rb', line 703 def to_s self.equal?(MATCH_NOTHING) ? '<0.0.0' : "<#{@version}" end |
#upper_bound? ⇒ 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.
699 700 701 |
# File 'lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/version_range.rb', line 699 def upper_bound? true end |