From: David Masover Date: 2011-01-28T03:22:38+09:00 Subject: Re: Coercion in Ruby On Thursday, January 27, 2011 10:19:18 am Adam Prescott wrote: > On Thu, Jan 27, 2011 at 4:20 AM, David Masover wrote: > > Remember duck typing? I don't care if it is_a Numeric, not really. I > > can't really think of many cases where is_a? makes more sense than > > kind_of?. > > Am I missing something here? I don't see how this is in keeping with the > idea of duck typing: is_a? is an alias for kind_of? and vice-versa. > > http://www.ruby-doc.org/core/classes/Object.html#M001034 > > Perhaps you were thinking of instance_of? here? Apparently so. Sorry for the noise...