MooseX::Meta::Parameter::Moose::Compiled - Compiled Moose parameter metaclass


MooseX-Method documentation  | view source Contained in the MooseX-Method distribution.

Index


NAME

Top

MooseX::Meta::Parameter::Moose::Compiled - Compiled Moose parameter metaclass

WARNING

Top

This API is unstable, it may change at any time. This should not affect ordinary MooseX::Method usage.

METHODS

Top

validate

Overriden from superclass.

as_perl

Returns a string of perl code that will validate an argument. Expects the value to be validated to reside in $_ and that the scalar $provided is present to tell if a value was provided. This is because undef is an allowed provided value. Modifies $_ if coercion is set.

compile

Returns a coderef that will perform the validation. Essencially a wrapper around as_perl that is handy if you don't need to do any inlining but still want the performance benefit. Note that the validate method is overridden to use a compiled version of the validator so you probably don't need to use this method yourself.

BUGS

Top

Most software has bugs. This module probably isn't an exception. If you find a bug please either email me, or add the bug to cpan-RT.

AUTHOR

Top

Anders Nor Berle <debolaz@gmail.com>

COPYRIGHT AND LICENSE

Top


MooseX-Method documentation  | view source Contained in the MooseX-Method distribution.