X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FParams%2FValidate.pm;h=b7293e59f4c887a5627d9312ab2cc6a45bf4906c;hb=f5e350c10b1bd97315e9fe6679091496f5604dbc;hp=2379008d23f2fbfe8bfa1ef7519fb38428f992a3;hpb=16de2e5be83d61e5edb568a86cabf768e80e48a8;p=gitmo%2FMooseX-Params-Validate.git diff --git a/lib/MooseX/Params/Validate.pm b/lib/MooseX/Params/Validate.pm index 2379008..b7293e5 100644 --- a/lib/MooseX/Params/Validate.pm +++ b/lib/MooseX/Params/Validate.pm @@ -249,7 +249,7 @@ MooseX::Params::Validate - an extension of Params::Validate for using Moose's ty \@_, bar => { isa => 'Str', default => 'Moose' }, ); - return "Horray for $params{bar}!"; + return "Hooray for $params{bar}!"; } sub bar { @@ -270,11 +270,11 @@ to Moose. This is just one of many developing options, it should not be considered the "official" one by any means though. You might also want to explore C and -C +C. =head1 CAVEATS -It is not possible to introspect the method parameter specs, they are +It is not possible to introspect the method parameter specs; they are created as needed when the method is called and cached for subsequent calls. @@ -284,9 +284,9 @@ calls. =item B -This behaves similar to the standard Params::Validate C +This behaves similarly to the standard Params::Validate C function and returns the captured values in a HASH. The one exception -being that if it spots an instance in the C<@_>, then it will handle +is where if it spots an instance in the C<@_>, then it will handle it appropriately (unlike Params::Validate which forces you to shift you C<$self> first).