From: Kamarulnizam Rahim Date: 2011-02-01T18:02:13+09:00 Subject: Re: class and inheritance. Inherit data Hi waldemar, Thanks for your post. Actually, i dont want every subclasses to has its own yaml file because the purpose of my program is to produce a sole yaml file, with all data (@title) from every subclasses included in that file. Btw, what do you meant by 'I think what you want is one class instance variable for all subclasses' ? can you show a simple example on that? One more thing, i saw on net there is a way by using '@@xxxx' variable and that variable can be called outside the class. Is it true? Thanks!! nizam -- Posted via http://www.ruby-forum.com/.