From: Rick DeNatale Date: 2007-11-12T08:36:26+09:00 Subject: Re: method names in 1.9 On Nov 11, 2007 4:33 PM, Matthew Boeh wrote: > I think you are misunderstanding me. My ersatz respond_to? does not call the > method: > > q = Object.new > def q.some_msg > puts "some_msg called" > end > q.some_msg > # "some_msg called" > q.respond_to?(:some_msg) > # ==> true > # (nothing printed) > def q.respond_to?(message) > !!method(message) rescue false > end > q.respond_to?(:some_msg) > # ==> true > # (nothing printed) You are correct. Sorry. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/