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