in reply to Object method prototypes?

You may be looking for a module like Params::Validate.

xoxo,
Andy