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

#==, #eql?, #exclude_begin?, #exclude_end?, #intersection, #merge, #test_prerelease?

Constructor Details

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

Instance Method Details

#beginObject

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.



708
709
710
# File 'lib/semantic_puppet/version_range.rb', line 708

def begin
  @version
end

#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.



720
721
722
# File 'lib/semantic_puppet/version_range.rb', line 720

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)


704
705
706
# File 'lib/semantic_puppet/version_range.rb', line 704

def include?(version)
  version == @version
end

#lower_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)


712
713
714
# File 'lib/semantic_puppet/version_range.rb', line 712

def lower_bound?
  @version != Version::MIN
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.



724
725
726
# File 'lib/semantic_puppet/version_range.rb', line 724

def to_s
  @version.to_s
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)


716
717
718
# File 'lib/semantic_puppet/version_range.rb', line 716

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