From: Justin Bailey Date: 2006-12-20T05:46:39+09:00 Subject: Re: what exactly does obj.is_a? do? ------=_Part_13531_2474570.1166560339144 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 12/19/06, Jon Garvin wrote: > > To clarify, I'm interested in *how*, not *if*, is_a? determines whether > @my_obj.is_a?(Klass) with no concern for superclasses or modules. I'm > fairly confident it's going to take somebody familiar with Ruby's source > code, not just the API, to answer this one. > > Check out the English translation of portions of the Ruby Hacking Guide. I'm not sure where you can get a direct answer to your question, but you can find out how some of those internals are constructed: http://rhg.rubyforge.org/ ------=_Part_13531_2474570.1166560339144--