From: Phy Prabab Date: 2007-02-20T14:33:58+09:00 Subject: Re: How to find out object type --0-2139852608-1171949635=:94147 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Ah, that's the ticket! Great thanks for the explanation!=0A=0A----- Origin= al Message ----=0AFrom: Gary Wright =0ATo: ruby-talk ML =0ASent: Monday, February 19, 2007 9:11:45 PM=0ASubj= ect: Re: How to find out object type=0A=0A=0AOn Feb 20, 2007, at 12:01 AM, = Phy Prabab wrote:=0A=0A> ah, thats better. So now for the real nubie quest= ion, I am lost as =0A> to why this does not work:=0A>=0A> irb(main):001:0>= o =3D 123=0A> =3D> 123=0A> irb(main):002:0> #{o} =3D Array.new=0A> irb(mai= n):003:0* o.class=0A> =3D> Fixnum=0A> irb(main):004:0> #{o}.class=0A=0AThe = #{} notation is only applicable inside a string: "#{o}". The=0Away you ar= e using it make the line look like a comment.=0AEverything after the # is s= imply discarded.=0A=0AMaybe you are looking for something like:=0A=0Aa =3D = 123=0Ab =3D [o]=0Ap b # [123]=0A=0A=0AGary Wright=0A=0A=0A=0A=0A=0A= =0A=0A=0A=0A=0A=0A =0A_____________________________________________________= _______________________________=0ADo you Yahoo!?=0AEveryone is raving about= the all-new Yahoo! Mail beta.=0Ahttp://new.mail.yahoo.com --0-2139852608-1171949635=:94147--