Hi all,
This is my first post here. As you know the “Design by contract”
subject is not new. It is specially in attention in Eiffel and also
there are many java libraries as iContract for this purpose.
I want to know is there any equivalent feature in Ruby?
On Wed, Dec 06, 2006 at 10:41:12PM +0900, Ashkan Roshanayi wrote:
Hi all,
This is my first post here. As you know the “Design by contract”
subject is not new. It is specially in attention in Eiffel and also
there are many java libraries as iContract for this purpose.
I want to know is there any equivalent feature in Ruby?
Yep. Check rubyforge, I believe you have multiple options.
Here is another that works pretty well:
http://split-s.blogspot.com/2006/02/design-by-contract-for-ruby.html
-Brian