Legal contracts as code?

Hi,

Anyone out there have a Ruby DSL/library for generating legal contracts?

Question inspired by: http://use.perl.org/~Ovid/journal/38548

Regards,

Dan