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/.