Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
module Puppet::Parser::Functions newfunction(:validate_ip, :type => :rvalue) do |args| valid = true args.each do |ip| valid = false unless ip =~ /(\d{1,3}\.){3}\d{1,3}/ end return valid end end
This paste will be private.
From the Design Piracy series on my blog: