From: James Edward Gray II Date: 2006-09-21T00:17:41+09:00 Subject: Re: [ANN] Ducktator - A Duck Type Validator On Sep 20, 2006, at 10:07 AM, Simen Edvardsen wrote: > The problem with #respond_to? is that it only tells you that a method > is supported. It doesn't even reliably tell you that: >> class Mystery >> def method_missing(meth, *args, &block) >> if meth == :supported >> true >> else ?> super >> end >> end >> end => nil >> m = Mystery.new => # >> m.supported => true >> m.respond_to? :supported => false James Edward Gray II