Class: SemanticPuppet::VersionRange::LtEqRange Private
- Inherits:
-
ComparatorRange
- Object
- AbstractRange
- ComparatorRange
- SemanticPuppet::VersionRange::LtEqRange
- 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.
Instance Attribute Summary
Attributes inherited from ComparatorRange
Instance Method Summary collapse
- #end ⇒ Object 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?, #exclude_end?, #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.
714 715 716 |
# File 'lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/version_range.rb', line 714 def end @version 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.
710 711 712 |
# File 'lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/version_range.rb', line 710 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.
722 723 724 |
# File 'lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/version_range.rb', line 722 def to_s "<=#{@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.
718 719 720 |
# File 'lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/version_range.rb', line 718 def upper_bound? @version != Version::MAX end |