From: Pete Hodgson Date: 2008-09-12T06:05:51+09:00 Subject: Re: Programming By Contract with Ruby --------------060501090901060007050304 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Thanks Dan. Looks like dbc is actually a Design By Contract system for C, using ruby and Racc to parse an external DSL: http://www.onlamp.com/pub/a/onlamp/2004/10/28/design_by_contract_in_c.html. I'll take a look at rubydbc. Anyone else have any input? Daniel Berger wrote: > On Sep 11, 10:53 am, Pete Hodgson wrote: > >> Hi Folks, >> >> Does anyone know of a Programming By Contract framework for ruby? It >> seems like fertile ground, given the dynamic nature of the language. I'm >> imagining some kind of DSL that allows a developer to annotate a >> class/module with invariants, and also to annotate methods with pre- and >> post-conditions. >> >> Cheers, >> Pete >> > > http://rubyforge.org/projects/rubydbc/ > http://rubyforge.org/projects/dbc/ > > Regards, > > Dan > > --------------060501090901060007050304--