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


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

Index


NAME

Top

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

WARNING

Top

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

SYNOPSIS

Top

  use MooseX::Meta::Parameter::Moose;

  my $parameter = MooseX::Meta::Parameter::Moose->new (isa => 'Int');

  my $result;

  eval {
    $result = $parameter->validate ("foo");
  };

  print Dumper($parameter->export);

METHODS

Top

validate

Takes an argument, validates it, and returns the argument or possibly a coerced version of it. Exceptions are thrown on validation failure.

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.