From: Stefan Lang Date: 2005-10-31T05:32:06+09:00 Subject: Re: [ANN] traits-0.8.0 - better living through meta-programming On Sunday 30 October 2005 21:23, Ara.T.Howard wrote: > � � � � �class Car > � � � � � �positive_int = lambda{|n| Fixnum === x and x > 0} ^ ^ Shouldn't these be "n"? > � � � � � �legal = proc{|s| s < speed_limit} > > � � � � � �trait 'speed_limit', 'validate' => positive_int, > 'default' => 42 trait 'speed', 'validate' => legal > � � � � �end Regards, Stefan