Class: SemanticPuppet::VersionRange::LtEqRange 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.

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?, #exclude_end?, #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.



689
690
691
# File 'lib/semantic_puppet/version_range.rb', line 689

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.

Returns:

  • (Boolean)


685
686
687
# File 'lib/semantic_puppet/version_range.rb', line 685

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.



697
698
699
# File 'lib/semantic_puppet/version_range.rb', line 697

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.

Returns:

  • (Boolean)


693
694
695
# File 'lib/semantic_puppet/version_range.rb', line 693

def upper_bound?
  @version != Version::MAX
end