From: Keith Sader Date: 2006-03-25T11:30:20+09:00 Subject: Re: [ANN] Article: An Exercise in Metaprogramming with Ruby Question along these lines, suppose you add an attribute to the 'People' class after the initial creation (say by adding another column to the people.txt file), do the 'old' people classes get the new attribute as well? If so, what's the initial value? I suspect it would be nil. thanks, On 3/24/06, John W. Long wrote: > Hal wrote: > > I failed to post this link before, so here it is now: > > > > http://www.devsource.com/article2/0,1895,1928561,00.asp > > > > Wow. Very nice. I'm doing a fair amount of meta programing myself these > days and having resources like this for reference and information is great. > > I like the way you dynamically create the class using Object#const_set. > Metaprogramming sure beats generating code the traditional way. > > -- > John Long > http://wiseheartdesign.com > > -- Keith Sader ksader@gmail.com http://www.saderfamily.org/roller/page/ksader