From: James Edward Gray II Date: 2005-07-14T23:55:07+09:00 Subject: Re: difference? On Jul 14, 2005, at 9:49 AM, G�bor SEBESTY�N wrote: > Hi, > > What is the difference between > > obj.kind_of?(Customer) > > and > > obj.class == Customer.class > > ? > The earlier works but the latter don't. Why? Customer is a "class", so when you ask for Customer.class you're probably getting Class as an answer. I believe what you meant is: obj.class == Customer Another way to write that is using the "case equals" method (used to resolve case statements): Customer === obj Hope that helps. James Edward Gray II