From: Leslie Viljoen Date: 2006-09-20T05:28:54+09:00 Subject: Re: [ANN] Ducktator - A Duck Type Validator This might be useful in testing. Thanks for the hard work! I can imagine a scheme where during debugging I do exhaustive validation of all objects passed to each method. This way I know if the object doesn't respond to a method - I don't have to wait for a call to fail. Incidentally, I have often wondered if there might be a tool that could generate a report of the methods a certain method might try to call on a specific object. For example: def doSomethingAmazing(fridgeMagnet, pieceOfString, brownPaperBag) pieceOfString.tie fridgeMagnet, brownPaperBag[5] pieceOfString.unravel fridgeMagnet.stickTo self.fridge end .. produces .. doSomethingAmazing -------------------------------- fridgeMagnet: stickTo pieceOfString: tie, unravel brownPaperBag: [ .. so if I am implementing an object to pass to doSomethingAmazing, I know what it expects. Les