Sha256: 240b7a40fd5d8dc1db5ea43e6e65060065ec9103c90c7f52285284cd16fc1ec1

Contents?: true

Size: 340 Bytes

Versions: 7

Compression:

Stored size: 340 Bytes

Contents

module Puppet::Parser::Functions
  newfunction(:min, :type => :rvalue, :doc => <<-EOS
    Returns the lowest value of all arguments.
    Requires at least one argument.
    EOS
  ) do |args|

    raise(Puppet::ParseError, "min(): Wrong number of arguments " +
          "need at least one") if args.size == 0

    return args.min
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
service_kiosk-0.5.6 provision/modules/stdlib/lib/puppet/parser/functions/min.rb
service_kiosk-0.5.5 provision/modules/stdlib/lib/puppet/parser/functions/min.rb
service_kiosk-0.5.4 provision/modules/stdlib/lib/puppet/parser/functions/min.rb
service_kiosk-0.5.3 provision/modules/stdlib/lib/puppet/parser/functions/min.rb
service_kiosk-0.5.2 provision/modules/stdlib/lib/puppet/parser/functions/min.rb
service_kiosk-0.5.1 provision/modules/stdlib/lib/puppet/parser/functions/min.rb
service_kiosk-0.5.0 provision/modules/stdlib/lib/puppet/parser/functions/min.rb