From: Dean Wampler Date: 2008-09-12T04:13:52+09:00 Subject: Re: Programming By Contract with Ruby ------=_Part_35901_1082900.1221160833920 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I have an example on the Aquarium site of doing basic "design (programming) by contract". Look near the bottom of this page for "Design by Contract": http://aquarium.rubyforge.org/examples.html dean On Thu, Sep 11, 2008 at 11: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 > > -- Dean Wampler http://www.objectmentor.com http://www.aspectprogramming.com http://aquarium.rubyforge.org http://www.contract4j.org ------=_Part_35901_1082900.1221160833920--