Class: SemanticPuppet::VersionRange::GtRange Private

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

#version

Instance Method Summary collapse

Methods inherited from ComparatorRange

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

Methods inherited from AbstractRange

#==, #end, #eql?, #exclude_end?, #intersection, #merge, #stable?, #test_prerelease?, #upper_bound?

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.



651
652
653
# File 'lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/version_range.rb', line 651

def begin
  @version
end

#exclude_begin?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)


647
648
649
# File 'lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/version_range.rb', line 647

def exclude_begin?
  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)


643
644
645
# File 'lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/version_range.rb', line 643

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)


655
656
657
# File 'lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/version_range.rb', line 655

def lower_bound?
  true
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.



659
660
661
# File 'lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/version_range.rb', line 659

def to_s
  ">#{@version}"
end