From: Phy Prabab Date: 2007-02-20T13:56:01+09:00 Subject: Re: How to find out object type --0-404170014-1171947358=:78021 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable umm, perhaps I am doing something wrong:=0A=0Airb(main):005:0> o.kind_of(0)= =0ANoMethodError: undefined method `kind_of' for 123:Fixnum=0A from = (irb):5=0Airb(main):006:0> o.kind_of(1)=0ANoMethodError: undefined method `= kind_of' for 123:Fixnum=0A from (irb):6=0Airb(main):007:0>=0A=0A----= - Original Message ----=0AFrom: Daniel N =0ATo: ruby-tal= k ML =0ASent: Monday, February 19, 2007 8:43:17 PM= =0ASubject: Re: How to find out object type=0A=0Aobject.kind_of?( Array ) = #=3D> To test if it is something=0Aobject.is_a?( Array ) #=3D> Same=0A=0Ao= bject.class #=3D> Tells you what class the object thinks it is.=0A=0A=0A=0A= On 2/20/07, Phy Prabab wrote:=0A>=0A> Hello,=0A>=0A> = I am curious, is there a way to find out an object type?=0A>=0A> TIA,=0A> P= hy=0A>=0A>=0A>=0A>=0A>=0A>=0A> ____________________________________________= ________________________________________=0A> Don't pick lemons.=0A> See all= the new 2007 cars at Yahoo! Autos.=0A> http://autos.yahoo.com/new_cars.htm= l=0A=0A=0A=0A=0A=0A=0A=0A =0A______________________________________________= ______________________________________=0ANever miss an email again!=0AYahoo= ! Toolbar alerts you the instant new Mail arrives.=0Ahttp://tools.search.ya= hoo.com/toolbar/features/mail/ --0-404170014-1171947358=:78021--