2009/4/14 Zbigniew Lukasiak <[email protected]>:
> I guess this might be a very basic question - but I could not find
> anything suitable in the docs - so I want a way to add multiple
> 'validate' methods to a form Field and have them called in what ever
> sequence.  Is there a nice way to do that in Moose?

I guess you want to load and apply Moose roles automatically.

My proposition:

Create anonymous or concrete class and call
Moose::Util::apply_all_roles($class, @roles). The list of roles
probably you'll take from configuration or File::Find.

-- 
 .''`.    Piotr Roszatycki
: :' :    mailto:[email protected]
`. `'     mailto:[email protected]
  `-

Reply via email to