From: Ari Brown Date: 2007-10-10T20:26:31+09:00 Subject: Re: object to class... On Oct 10, 2007, at 4:22 AM, Shai Rosenfeld wrote: > Pokkai Dokkai wrote: >> is it possible to convert from a ruby object to Ruby class... >> any idea..... > > do u mean this? > > http://www.ruby-doc.org/core/classes/Object.html#M000348 Maybe he means something like extracting Ruby code for the class out of the object... That would be very interesting, because you could really delve in and affect all sorts of bug fixes for compiled extensions. AFAIK, this is not possible. Take a look at ruby2ruby I'm guessing something like a = YourClass.new a.to_ruby Ari --------------------------------------------| If you're not living on the edge, then you're just wasting space.