From: Harry Ohlsen Date: 2002-10-12T06:39:33+09:00 Subject: Re: Polymorphism, Isomorphism On Sat, 12 Oct 2002 07:27, Harry Ohlsen wrote: > What I'd prefer is to be able to say > > Runnable = [:run] > > def fred(a) > raise "Unusable 'a' parameter" unless a.implements? Runnable > end > > since I would think of interface specifications as being logically similar > to classes, as in Java (hence the capitalisation). However, that didn't > work, either. Whoops! I take that back !! It was just a typo ... I forgot to change the names in the sub-array, so I had "InterfaceGHI = [interfaceGH, interfaceHI]" and I misread the error message. So, the example above should work fine, which makes me happy :-). H.