From: Phy Prabab Date: 2007-02-20T14:34:51+09:00 Subject: Re: How to find out object type --0-1492358302-1171949688=:91411 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Got it. thanks!=0A=0A----- Original Message ----=0AFrom: Harold Hausman =0ATo: ruby-talk ML =0ASent: Mon= day, February 19, 2007 9:09:47 PM=0ASubject: Re: How to find out object typ= e=0A=0AOn 2/20/07, Phy Prabab wrote:=0A> ah, thats be= tter. So now for the real nubie question, I am lost as to why this does no= t work:=0A>=0A> irb(main):001:0> o =3D 123=0A> =3D> 123=0A> irb(main):002:0= > #{o} =3D Array.new=0A> irb(main):003:0* o.class=0A> =3D> Fixnum=0A> irb(m= ain):004:0> #{o}.class=0A> irb(main):005:0*=0A> irb(main):006:0* ^C=0A> irb= (main):006:0>=0A>=0A> I was hoping to be create an array from the numb stor= ed as "o", but this must be wrong,=0A> because trying to get the class of t= he object does not work. Any help?=0A=0Airb(main):001:0> o =3D 42=0A=3D> 4= 2=0Airb(main):002:0> the_o_array =3D [o]=0A=3D> [42]=0Airb(main):003:0> the= _o_array.class=0A=3D> Array=0A=0Ahth,=0A-Harold=0A=0A=0A=0A=0A=0A=0A=0A=0A = =0A________________________________________________________________________= ____________=0ATV dinner still cooling? =0ACheck out "Tonight's Picks" on Y= ahoo! TV.=0Ahttp://tv.yahoo.com/ --0-1492358302-1171949688=:91411--