It would be good to see example. but generally you should use BUILD and BUILDARGS instead of modifying new. Also declare BUILDARGS as follows:
so it wouldn't complain about failed validation.method BUILDARGS (ClassName $class: ...) { ... }
In reply to Re: MooseX::Declare not able to modify new() and BUILDARGS()
by zwon
in thread MooseX::Declare not able to modify new() and BUILDARGS()
by llancet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |