From: Dave Thomas Date: 2002-02-14T00:29:18+09:00 Subject: Re: qualms about respond_to? idiom David Alan Black writes: > I'm cool with Ruby's emphasis on object interface rather than type. > The only thing is... I just can't get myself to be happy about this > idiom: > > if obj.respond_to? "method" then obj.method end This is an interesting topic. Just to make sure we're talking about the same thing, can I start with a question. When do you need to check the protocol of an object like this? Dave