From: Aki Wakabayashi Date: 2009-03-09T23:23:56+09:00 Subject: Re: Can I access or find a object from it's instance variable? Thank you Robert. Sorry for the late reply. It took me a while to understand your code since I only started to code in Ruby about a month ago. > class Module > def one_to_one(name, cl) > module_eval %Q{ > ... > > class Foo > one_to_one :parent, Foo > end > If you use ActiveRecord for persistence you get these things for free. I looked into this and it seems to fit my needs. Also, thank you for telling me about RAA. I didn't know of it's existence until you mentioned it. I'm not using Ruby for projects(yet), but the more I dive into it the more flexible it seems and it's fun. I hope I can be able to come up with code like the one above with a couple more months of practice. Aki -- Posted via http://www.ruby-forum.com/.