this is the pick() function in stdlib
authormh <mh@immerda.ch>
Sun, 27 Mar 2016 16:33:24 +0000 (18:33 +0200)
committermh <mh@immerda.ch>
Sun, 27 Mar 2016 16:33:24 +0000 (18:33 +0200)
lib/puppet/parser/functions/get_default.rb [deleted file]

diff --git a/lib/puppet/parser/functions/get_default.rb b/lib/puppet/parser/functions/get_default.rb
deleted file mode 100644 (file)
index 3f4359b..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-# get_default($value, $default) : $value
-#
-# return $value || $default.
-module Puppet::Parser::Functions
-    newfunction(:get_default, :type => :rvalue) do |args|
-        value = nil
-        args.each { |x|
-            if ! x.nil? and x.length > 0
-                value = x
-                break
-            end
-        }
-        return value
-    end
-end