diff options
author | mh <mh@immerda.ch> | 2010-10-21 00:04:25 +0200 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2010-11-07 13:37:14 -0500 |
commit | 90a172d01f13924954384229655b5098db0cbb73 (patch) | |
tree | d4bc24a2094e9bfe374dd6ed383e205404788ae2 /lib/puppet/parser/functions/split.rb | |
parent | 51e06fd0d2fa1c8999f328051e5e717bc18e77e7 (diff) | |
download | puppet-common-90a172d01f13924954384229655b5098db0cbb73.tar.gz puppet-common-90a172d01f13924954384229655b5098db0cbb73.tar.bz2 |
remove some legacy functions that are now in upstream
Diffstat (limited to 'lib/puppet/parser/functions/split.rb')
-rw-r--r-- | lib/puppet/parser/functions/split.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/puppet/parser/functions/split.rb b/lib/puppet/parser/functions/split.rb deleted file mode 100644 index 5237c92..0000000 --- a/lib/puppet/parser/functions/split.rb +++ /dev/null @@ -1,17 +0,0 @@ -# split($string, $delimiter) : $string -# split($string[], $delimiter) : $string[][] -# -# Split the first argument(s) on every $delimiter. $delimiter is interpreted as -# Ruby regular expression. -# -# For long-term portability it is recommended to refrain from using Ruby's -# extended RE features. -module Puppet::Parser::Functions - newfunction(:split, :type => :rvalue) do |args| - if args[0].is_a?(Array) - args.collect do |a| a.split(/#{args[1]}/) end - else - args[0].split(/#{args[1]}/) - end - end -end |