From: Logan Capaldo Date: 2006-01-05T07:45:41+09:00 Subject: Re: Potential RCR: method_missing convention, opinions? --Apple-Mail-5--806267700 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Jan 4, 2006, at 9:35 AM, Jim Weirich wrote: > def respond_to?(sym) > replacement_lambda(sym) || original_respond_to?(sym) > end > end Minor suggestion, I would flip that around, since it would probably A) be faster in the common case and B) consistent with current behavior. (If you call a method that something #respond_to?s why are you gonna go through the extra dynamic dispatch.) Other than that, I like how you managed to keep it backwards compatible and in pure ruby no less. --Apple-Mail-5--806267700--