From: Pokkai Dokkai Date: 2008-02-02T14:29:20+09:00 Subject: Re: how to get the name of parent object inside child object thank for the quick reply sorry i wrote wrong explanation this is my correct explanation class Cycle @brand=nil def initialize end end class Wheel @brand="something" def option Cycle.new end end > w=Wheel.new > w.brand --->something > c=Cycle.new > c.brand --->nil > w.option.brand --->something any idea ? -- Posted via http://www.ruby-forum.com/.