On Mon, May 23, 2011 at 11:53:12AM -0700, Jacob Helwig wrote: [...] > Is there an implemented way of doing 'this parameter is required; fail > at compile time'? Hopefully without having to do a defaultto of a bogus > value, and having a validation failure against that.
You can specify a validate method for the whole type (not just a single property) and do your check there. You'll find such an example in type/ssh_authorized_key.rb > > -- > Jacob Helwig
pgpDeCVWBSLZ9.pgp
Description: PGP signature
