From: ara howard Date: 2008-03-08T14:56:38+09:00 Subject: Re: fattr-1.0.2 On Mar 7, 2008, at 9:18 PM, Daniel Berger wrote: > Interesting. What about data types? > > class C > fattr 'a' => Integer > end > > c = C.new > c.a = 42 # ok > c.a = 'hello' # TypeError > > You may have this, but I didn't see it in the samples or readme (but > very well may have missed it). it is *far* more heavyweight, but see http://codeforpeople.com/lib/ruby/traits/traits-0.9.2/README it also supports aspects, validation, and a ton of other stuff cheers. a @ http://codeforpeople.com/ -- it is not enough to be compassionate. you must act. h.h. the 14th dalai lama