Class: Puppet::Util::Package::Version::Range::GtEq

Inherits:
Simple show all
Defined in:
lib/puppet/util/package/version/range/gt_eq.rb

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

Returns:

  • (Boolean)


12
13
14
# File 'lib/puppet/util/package/version/range/gt_eq.rb', line 12

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

#to_sObject



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

def to_s
  ">=#{@version}"
end