Class: Puppet::Util::Package::Version::Range::Eq Private

Inherits:
Simple show all
Defined in:
lib/puppet/util/package/version/range/eq.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 Method Summary collapse

Methods inherited from Simple

#initialize

Constructor Details

This class inherits a constructor from Puppet::Util::Package::Version::Range::Simple

Instance Method Details

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


10
11
12
# File 'lib/puppet/util/package/version/range/eq.rb', line 10

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.



7
8
9
# File 'lib/puppet/util/package/version/range/eq.rb', line 7

def to_s
  "#{@version}"
end