1 2 3 4 5 6 7
# generic split call module Puppet::Parser::Functions newfunction(:split, :type => :rvalue) do |args| args[0].split(/#{args[1]}/) end end