From: Greg McIntyre Date: 2003-11-21T11:17:16+09:00 Subject: Re: New Type Checking System Idea Geoff Youngs wrote: > I've played with a soft interface implementation which works > reasonably well where I've used it... Oooh, how does it work? I tried redefining Module#append_features to call a hook which can be defined to check for the methods the module needs. The only drawback is you have to include your modules down the bottom of the class. It doesn't work for inheritance however because Class::inherited is called at the start of a class definition, not at the end. So far that's the best Ruby 1 patch-up job I can do to get, as you put it, soft interface checking. That is, the best without introducing a lot more ugly code... -- Greg McIntyre ======[ greg@puyo.cjb.net ]===[ http://puyo.cjb.net ]===