On Aug 25, 12:53 pm, Maese <[email protected]> wrote: > hi, i have a string with the enconding reference like "#<MyObject: > 0x2b9027de>" > there any way to get the object from the string ? > Thanks
Tim's method works - but you should REALLY REALLY think about what's causing you to want to do this. This sort of trick could be handy when debugging, but using it in code that's meant to run reliably can wind up giving you some serious headaches. For instance, the object referred to by the string could get garbage-collected before you can dereference it... --Matt Jones -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

