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


.