From: Jonas Pfenniger Date: 2006-09-20T04:33:22+09:00 Subject: Re: [ANN] Ducktator - A Duck Type Validator On 19/09/06, Ola Bini wrote: > Oh yes. You could, but on the other hand you would have to write code > like that if you want it somewhere else. Or, if you want something that > checks another aspect. Actually, the validator is really for the more > convoluted cases, where you still need validity of some kind. If your > objects always are in your control, sure, or if you want to sprinkle > your code with respond_to?'s all over, that's fine, just do that. I feel > the need for this when I load huge YAML documents with nested structure, > or when receiving something through SOAP, that I need to test out. For > example. This isn't static type safety, nor anywhere close. But it lets > you fail fast of the object doesn't match. Yeah so your project is more a YAML DTD. It uses duck-typing but also class validation. -- Cheers, zimbatm http://zimbatm.oree.ch