Class: SemanticPuppet::VersionRange::LtRange Private

Inherits:
ComparatorRange show all
Defined in:
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

#version

Instance Method Summary collapse

Methods inherited from ComparatorRange

#eql?, #hash, #initialize, #test_prerelease?

Methods inherited from AbstractRange

#==, #begin, #eql?, #exclude_begin?, #intersection, #lower_bound?, #merge, #test_prerelease?

Constructor Details

This class inherits a constructor from SemanticPuppet::VersionRange::ComparatorRange

Instance Method Details

#endObject

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.



670
671
672
# File 'lib/semantic_puppet/version_range.rb', line 670

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.

Returns:

  • (Boolean)


666
667
668
# File 'lib/semantic_puppet/version_range.rb', line 666

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.

Returns:

  • (Boolean)


662
663
664
# File 'lib/semantic_puppet/version_range.rb', line 662

def include?(version)
  version < @version
end

#to_sObject

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.



678
679
680
# File 'lib/semantic_puppet/version_range.rb', line 678

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.

Returns:

  • (Boolean)


674
675
676
# File 'lib/semantic_puppet/version_range.rb', line 674

def upper_bound?
  true
end