From: "T. Onoma" Date: 2003-11-19T10:06:51+09:00 Subject: Re: "stereotyping" (was: Re: Strong Typing (Re: Managing metadata about attribute types)LONGEST SUB? I wonder if it would be helpful to be able to ask a method what the respond_to? requirements of its parameters will be. def read(io_object) io_object.read end method(:read).duck_signiture # => [ [:read] ] then you might def read(io_object) self.method(:read).duck_signiture[0].each { |m| fail "Not Responsable Object" unless io_object.respond_to?(m) } io_object.read end a shorthand would be nice. -t0