puppetlabs/puppetlabs-stdlib — pull request #194 by DavidS (2013-10-21 16:07:45+00:00)
Title: Add default_content function to reduce module boilerplate code

Hi,

please consider including this function to reduce the amount of boilerplate code one has to write when creating modules.

Also, I'm not sure whether I translated the undef handling correctly from pp to rb. It'd be great if someone more experienced could look over that. Especially whether returning `nil` really means undef as claimed in the docstring.

Regards, DavidS